[ http://issues.apache.org/jira/browse/TUSCANY-343?page=comments#action_12379074 ]
Michael John Edwards commented on TUSCANY-343: ---------------------------------------------- I found the last comment from Jean-Sebastien surprising - "I am not expecting the tool to process the imported XSD...". Surely you DO want the tool to process the imported XSD? Why force the user to go find the XSD and use a tool to generate Java from it separately. With a large complex WSDL this could be a nightmare. I can understand a temporary limitation while we build up the function, but not a permanent solution with this limitation. > WSDL2JavaGenerator fails if the wsdl have an import for the XSD types > --------------------------------------------------------------------- > > Key: TUSCANY-343 > URL: http://issues.apache.org/jira/browse/TUSCANY-343 > Project: Tuscany > Type: Bug > Components: Java SCA Tools > Versions: Java-M1 > Environment: Windows XP > Reporter: Jojo Joseph > Assignee: Frank Budinsky > Priority: Critical > Fix For: Java-M1 > Attachments: testing-interop-uddi.zip > > I have a WSDL (uddi_api_v3_portType.wsdl) which import the types schema as : > <types> > <xsd:schema targetNamespace="urn:uddi-org:api_v3_portType" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <xsd:import namespace="urn:uddi-org:api_v3" > schemaLocation="uddi_v3.xsd"/> > </xsd:schema> > </types> > If I specify this WSDL as a parameter to the tuscany-sca-plugin for java > code generation, it fails with the following exception : > [INFO] Generating Java service interfaces from > C:\Project\Tuscany\ws0508\testing-interop-uddi\src\main\resources\wsdl\test.wsdl > java.lang.NullPointerException > at > org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:191) > at > org.apache.tuscany.sdo.helper.XSDHelperImpl.define(XSDHelperImpl.java:161) > at > org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator.generateFromWSDL(WSDL2JavaGenerator.java:132) > at > org.apache.tuscany.tools.wsdl2java.plugin.WSDL2JavaGeneratorMojo.execute(WSDL2JavaGeneratorMojo.java:134) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) > .... > As a side note I would like to mention that if I specify the WSDL as a > parameter to tuscany-sdo-plugin, then that too fails with the same exception. > But there is a work-around for SDO code generation as I can specify the XSD > file containing the types schema as the parameter to the tuscany-sdo-plugin. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
