Hi,
could you please explain why the third option is wrong?
A service instance can be created with the WSDL document location and the qualified name:
http://docs.oracle.com/javaee/6/api/jav ... tml#create(java.net.URL, javax.xml.namespace.QName)
Why do you say it should be created only with the serviceName?
Thanks,
Alex
About Question enthuware.ocejws.v6.2.97 :
Moderators: Site Manager, fjwalraven
-
- Posts: 19
- Joined: Tue Feb 11, 2014 8:35 am
- Contact:
-
- Posts: 429
- Joined: Tue Jul 24, 2012 2:43 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.97 :
Hi Alex,
I agree I should update the explanation.
The reason why the third option doesn't work lies in fact that we have used the @WebServiceProvider annotation. By default the JAX-WS runtime does not generate a WSDL for WebServiceProvider classes. (as it doesn't know what operations are supported)
If we now use the url in our Service creation, it will fail because there is no WSDL published at that location.
Thanks for your feedback!
Regards,
Frits
I agree I should update the explanation.
The reason why the third option doesn't work lies in fact that we have used the @WebServiceProvider annotation. By default the JAX-WS runtime does not generate a WSDL for WebServiceProvider classes. (as it doesn't know what operations are supported)
If we now use the url in our Service creation, it will fail because there is no WSDL published at that location.
Code: Select all
url = new URL(endpoint + "?wsdl");
Service service = Service.create(url,serviceName);
Regards,
Frits
-
- Posts: 19
- Joined: Tue Feb 11, 2014 8:35 am
- Contact:
Re: About Question enthuware.ocejws.v6.2.97 :
thanks for the explanation! 

Who is online
Users browsing this forum: No registered users and 2 guests