[jboss-user] [JBoss Web Services] - Re: get Jboss 7 to use custom top down WSDL definition of your choosing, without having CXF generate a wsdl

jonathan wilson do-not-reply at jboss.com
Mon Mar 11 17:27:40 EDT 2013

jonathan wilson [https://community.jboss.org/people/888yyy888] created the discussion

"Re: get Jboss 7 to use custom top down WSDL definition of your choosing, without having CXF generate a wsdl"

To view the discussion, visit: https://community.jboss.org/message/801991#801991

so setting the wsdlLocation in the @webservice annotation lead to the error described here

 http://mail-archives.apache.org/mod_mbox/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-981FC0F68F53@apache.org%3E http://mail-archives.apache.org/mod_mbox/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-981FC0F68F53@apache.org%3E mailto:box/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-981FC0F68F53 at apache.org box/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-981FC0F68F53 at apache.org%3E

so it turned way simpler after reading it

the directions there list two options:

1) Update the @WebService annotation on the FooDocumentImpl class to  
have the serviceName/portName attributes that match the values in the  

2) Update the <jaxws:endpoint> element in your config to add the  
qnames for the service name and portname.

the first is if you are not using Spring, so after explicitly bringing the @WebService annotation to:

@WebService(endpointInterface = "main.package.InterfaceWS", serviceName = "InterfaceWSService", name = "InterfaceWS", targetNamespace = " http://Interface.namespace.main http://Interface.namespace.main", wsdlLocation = "WEB-INF/wsdl/InterfaceWS.wsdl" ,portName="InterfaceWSPort")

to match the service description in the wsdl:

 | <service name="InterfaceWSService"> |
 | <port binding="tns:InterfaceWSSOAPBinding" name="InterfaceWSPort"> |
 | <soap:address location="http://localhost:8080/theLocationOfTheInterface" /> |
 | </port> |
 | </service> |

it worked like a charm

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130311/b1bbdbf0/attachment.html 

More information about the jboss-user mailing list