I have another case which generates an exception when running wsdl-java using the unwrap option. In this case, the wsdl was actually generated by wstools itself from java-wsdl. For a method with a void return it has generated this wsdl fragment:
<complexType name='logoutUserResponse'>
<sequence/>
</complexType>
This generates the following exception
Exception in thread "main" java.lang.NullPointerException
at org.jboss.ws.tools.WSDLToJava.unwrapResponse(WSDLToJava.java:316)
at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:555)
at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:372)
at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:512)
at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:534)
at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:188)
at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:329)
at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
--------------------------------------------------
My environment is linux 2.6.3 (mandrake), using jboss 4.0.4.GA, jbossws-1.0.3, jdk 1.5.0_07.