Dispatch client works even if port QName is wrong

Moderators: Site Manager, fjwalraven

Post Reply
socialguy
Posts: 12
Joined: Thu Nov 28, 2013 5:23 pm
Contact:

Dispatch client works even if port QName is wrong

Post by socialguy »

Hi,
I noticed that a dispatch client works even if the port QName is wrong. This doesn't make sense. Here's a client that shows the aforementioned behavior:
https://github.com/abhijitsarkar/java-e ... lient.java

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

Re: Dispatch client works even if port QName is wrong

Post by himaiMinh »

Under the jax-ws/jaxws-depoly-desc/src/main/resources/wsdl, there are some wsdl files that specifies the targetnamespace as http://abhijitsarkar.name/webservices/j ... ploy-desc/
I think the author first creates the wsdl and then generates the SEI and SBI for the service.
The client is using the above targetnamespace to create the dispatch client.

socialguy
Posts: 12
Joined: Thu Nov 28, 2013 5:23 pm
Contact:

Re: Dispatch client works even if port QName is wrong

Post by socialguy »

himaiMinh wrote:Under the jax-ws/jaxws-depoly-desc/src/main/resources/wsdl, there are some wsdl files that specifies the targetnamespace as http://abhijitsarkar.name/webservices/j ... ploy-desc/
I think the author first creates the wsdl and then generates the SEI and SBI for the service.
The client is using the above targetnamespace to create the dispatch client.
I happen to be the author and no, I didn't start from WSDL, that wasn't the purpose of the project. The purpose was to override some of the annotation values using a webservices.xml.
In any case, a dispatch client shouldn't be able to function with a wrong port QName. When you say "The client is using the above targetnamespace to create the dispatch client", which part of the client code do you refer to? Why do you think how the service was developed (contract first/code first) has any influence on the client?

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

Re: Dispatch client works even if port QName is wrong

Post by fjwalraven »

Answered here.

Regards,
Frits

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests