About Question enthuware.ocejws.v6.2.97 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
t.alex
Posts: 19
Joined: Tue Feb 11, 2014 8:35 am
Contact:

About Question enthuware.ocejws.v6.2.97 :

Post by t.alex »

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

fjwalraven
Posts: 429
Joined: Tue Jul 24, 2012 2:43 am
Contact:

Re: About Question enthuware.ocejws.v6.2.97 :

Post by fjwalraven »

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.

Code: Select all

url = new URL(endpoint + "?wsdl");
Service service = Service.create(url,serviceName);
Thanks for your feedback!

Regards,
Frits

t.alex
Posts: 19
Joined: Tue Feb 11, 2014 8:35 am
Contact:

Re: About Question enthuware.ocejws.v6.2.97 :

Post by t.alex »

thanks for the explanation! :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests