jonathan wilson
2013-03-11 21:27:40 UTC
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-***@apache.org%3E http://mail-archives.apache.org/mod_mbox/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-***@apache.org%3E mailto:box/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-***@apache.org box/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-***@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Â
wsdl.
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
[https://community.jboss.org/message/801991#801991]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
"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-***@apache.org%3E http://mail-archives.apache.org/mod_mbox/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-***@apache.org%3E mailto:box/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-***@apache.org box/cxf-users/200806.mbox/%3C1932ACF3-DCD2-4073-83DD-***@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Â
wsdl.
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
[https://community.jboss.org/message/801991#801991]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]