Invoke webservice using jaxws when the wsdl has more than one service

Posted by Hugo Palma on Stack Overflow See other posts from Stack Overflow or by Hugo Palma
Published on 2010-02-12T17:05:08Z Indexed on 2010/05/16 2:10 UTC
Read the original article Hit count: 325

Filed under:
|
|

I'm trying to get hold of the FindService on this wsdl using jaxws. I generated the classes just fine using wsimport.

But when i do:

FindService findService = new FindService();

i get the exception:

Exception in thread "main" javax.xml.ws.WebServiceException: {http://s.mappoint.net/mappoint-30/}FindService is not a valid service. Valid services are: {http://s.mappoint.net/mappoint-30/}CommonService

So, it seems that jaxws is only finding CommonService in the wsdl which is the first one declared in it. Any idea how i can use the FindService ?

Thanks.

© Stack Overflow or respective owner

Related posts about jax-ws

Related posts about java