You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Anne Kümpel <an...@tu-dresden.de> on 2009/04/01 18:54:32 UTC
problem with @Webservice serviceName
Hi,
I've a Ws interface annotate like this:
@WebService(name="boc",
targetNamespace="http://com.boc.webservice")
@SOAPBinding(style = Style.RPC)
public interface BocInterface {
...
and the implementation annotate like this:
@WebService(portName="bocPort",
serviceName="bocService",
targetNamespace="http://com.boc.webservice",
wsdlLocation="WEB-INF/wsdl/boc.wsdl",
endpointInterface="com.boc.webservice.api.BocInterface")
public class BocImpl implements BocInterface {
...
on
http://java.sun.com/javase/6/docs/api/index.html?javax/jws//class-useWebService.html
is written:
serviceName:
The service name of the Web Service.
Used as the name of the wsdl:service when mapped to WSDL 1.1.
but, if I create the wsdl (with the maven-plugin: cxf-java2ws-plugin) I
get a wsdl with :
<wsdl:service name="BocInterfaceService"> instead of <wsdl:service
name="bocService">
what's wrong?
thanks a lot for help
anne