When generating a new web servixce client using a wsdl file containing a SOAP fault the generation fails. With the following stacktrace in the error log:
eclipse.buildId=M20070212-1330
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=nl_NL
Command-line arguments: -os win32 -ws win32 -arch x86
Error
Fri May 25 08:46:45 CEST 2007
Error generating services
java.lang.NullPointerException
at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.getExceptionClass(AbstractServiceGenerator.java:428)
at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generateFaults(AbstractServiceGenerator.java:407)
at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generateOperation(AbstractServiceGenerator.java:366)
at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:123)
at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:67)
at org.codehaus.xfire.gen.jsr181.ServiceInterfaceGenerator.generate(ServiceInterfaceGenerator.java:49)
at org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.generate(AbstractServiceGenerator.java:54)
at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:167)
at com.genuitec.eclipse.ws.xfire.generator.WSGenJob.run(WSGenJob.java:209)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
I first created the web service using JSR181 and deployed it.
Saved the resulting wsdl
Used the wizard to create a new web service client…
No validation errors found -> next
Dialog pops up with Error during Generation 🙁
Removing MyException from the throw clause from the orginal webmethod results in the client stubs being generated. Soap fault handling seems to be broken!
I have all the code and logs available in a zip file. How can I submit this information?