I\'m writing a fat client that makes use of a SOAP service for some features (bug reporting etc.)
I\'ve got JAX-WS working fine, but by default (in netbeans at least
I stumbled upon the same issue. The JAXWS generate client code uses the MyService.class.getResource(".")
trick to load the wsdl file... but after testing this only seems to work if the class file is in a directory on the filesytem. If the class file is in a JAR this call returns null for the URL.
It sounds like a bug in the JDK since if you build your URL like this:
final URL url = new URL( MyService.class.getResource( MyService.class.getSimpleName() + ".class"), "myservice.wsdl");
then it also works if the class and wsdl are bundled in a jar.
I guess most people will actually bundle in a jar!