Hi all,
I'll start by saying I'm very new to JAX-WS and java itself, so please
forgive me if this is a PEBKAC issue.
When using JAX-WS 2.2, I'm getting an error that I do not get with JAX-WS 2.1.7.
I'm using Mavan, and my dependency is defined:
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.2</version>
</dependency>
The code I'm using is against the WSDL here:
https://api-s200.postini.com/dl/api/endpointresolver.wsdl
The code is simply:
EndpointResolverService service = new EndpointResolverService();
EndpointResolverPort port = port = service.getEndpointResolverPort();
In 2.1.7, I am able to execute the above, and get a reply as expected,
however in 2.2 I get:
Exception in thread "main" java.lang.NoSuchMethodError:
javax.xml.ws.WebFault.messageName()Ljava/lang/String;
at com.sun.xml.ws.model.RuntimeModeler.processExceptions(RuntimeModeler.java:1162)
at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:898)
at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:666)
at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:420)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:254)
at com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:661)
at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:649)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:343)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:308)
at javax.xml.ws.Service.getPort(Service.java:92)
at mail.postini.EndpointResolverService.getEndpointResolverPort(EndpointResolverService.java:56)
at mail.postini.App.main(App.java:15)
--
Blog: http://pookey.co.uk/blog
Follow me on twitter: http://twitter.com/ipchristian