There was a problem with the xml-snippets, here again: Hi
I'm using jboss-4.0.4.GA and generate WebService-Artefacts with wstools (ant-task). As input I use a wsdl. If I declare a exception in the section of a wsdl like this: <element name="CronServiceExceptionType"> | <complexType> | <sequence> | <element name="message" type="string"/> | </sequence> | </complexType> | </element> I get this exception from wstools: org.jboss.ws.WSException: String passed is null [wstools] at org.jboss.ws.metadata.wsdl.WSDLUtils.firstLetterUpperCase(WSDLUtils.java:453) [wstools] at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:137) [wstools] at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:113) [wstools] at org.jboss.ws.tools.WSDLToJava.generateJavaSourceForException(WSDLToJava.java:504) [wstools] at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:307) [wstools] at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:333) [wstools] at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:355) [wstools] at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:174) [wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:326) [wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:132) [wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:119) [wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103) [wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) But when I declare the exception like this everything works fine: | <complexType name="CronServiceExceptionType"> | <sequence> | <element name="message" type="string"/> | </sequence> | </complexType> | <element name="CronServiceExceptionType" type="tns:CronServiceExceptionType"/> | Is there an explanation for this or is that a bug? Regards, Andreas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944917#3944917 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944917 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user