UPDATE :

If I use '-d' then following exception occurred :

Command : wsdl2java.bat -d -o -u -uri
https://blablabla.sugarondemand.com/soap.php?wsdl

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:159)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:222)
        at 
org.apache.axis2.wsdl.codegen.CodegenConfigLoader.loadConfig(CodegenConfigLoader.java:48)
        at 
org.apache.axis2.wsdl.codegen.CodeGenConfiguration.<init>(CodeGenConfiguration.java:379)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:84)
        ... 2 more

Please help, I will not be able to progress if I can't create stubs.

On Thu, Jan 20, 2011 at 7:00 PM, fire fox <fyr3...@gmail.com> wrote:
> Hi all,
>
> I have tried to generate the stubs from the SugarCRM WSDL file using
> Axis2, but following exception occured.
>
> --> Command used : wsdl2java.bat -uri sugar.wsdl
>
> Illegal character in path at index 11: file:/E:/My
> Work/Frameworks/Apache Axis/axis2-1.5.3/bin/sugar.wsdl
>
> downloaded wsdl file from the following url.
>
> --> Command used : wsdl2java.bat -uri
> https://blablabla.sugarondemand.com/soap.php?wsdl
>
> Exception stacktrace :
>
> Using AXIS2_HOME:   E:\My Work\Frameworks\Apache Axis\axis2-1.5.3
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0_20
> Retrieving document at 'https://blablabla.sugarondemand.com/soap.php?wsdl'.
> Retrieving schema at 'http://schemas.xmlsoap.org/soap/encoding/',
> relative to 'https://blablabla.sugarondemand.com/soap.php?wsdl'.
> Retrieving schema at 'http://schemas.xmlsoap.org/soap/encoding/',
> relative to 'https://blablabla.sugarondemand.com/soap.php?wsdl'.
> [ERROR] org.apache.ws.commons.schema.XmlSchemaException: An imported
> schema was announced to have the namespace
> http://schemas.xmlsoap.org/wsdl/, but has the na
> mespace http://schemas.xmlsoap.org/soap/encoding/
> java.lang.RuntimeException:
> org.apache.ws.commons.schema.XmlSchemaException: An imported schema
> was announced to have the namespace http://schemas.xmlsoap.org/w
> sdl/, but has the namespace http://schemas.xmlsoap.org/soap/encoding/
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1904)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1927)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1616)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:224)
>        at 
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:433)
>        at 
> org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
>        at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2319)
>        at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:413)
>        at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:402)
>        at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:346)
>        at 
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>        at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.ws.commons.schema.XmlSchemaException: An
> imported schema was announced to have the namespace
> http://schemas.xmlsoap.org/wsdl/, but has the
>  namespace http://schemas.xmlsoap.org/soap/encoding/
>        at 
> org.apache.ws.commons.schema.SchemaBuilder$1.validate(SchemaBuilder.java:1602)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:369)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:134)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121)
>        at 
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:445)
>        at 
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:368)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1898)
>        ... 13 more
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> WSDL
>        at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:153)
>        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: org.apache.axis2.AxisFault:
> org.apache.ws.commons.schema.XmlSchemaException: An imported schema
> was announced to have the namespace http://schemas.xm
> lsoap.org/wsdl/, but has the namespace 
> http://schemas.xmlsoap.org/soap/encoding/
>        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>        at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:396)
>        at 
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>        at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147)
>        ... 2 more
> Caused by: java.lang.RuntimeException:
> org.apache.ws.commons.schema.XmlSchemaException: An imported schema
> was announced to have the namespace http://schemas.xm
> lsoap.org/wsdl/, but has the namespace 
> http://schemas.xmlsoap.org/soap/encoding/
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1904)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1927)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1616)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:224)
>        at 
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:433)
>        at 
> org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:144)
>        at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2319)
>        at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:413)
>        at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:402)
>        at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:346)
>        ... 4 more
> Caused by: org.apache.ws.commons.schema.XmlSchemaException: An
> imported schema was announced to have the namespace
> http://schemas.xmlsoap.org/wsdl/, but has the
>  namespace http://schemas.xmlsoap.org/soap/encoding/
>        at 
> org.apache.ws.commons.schema.SchemaBuilder$1.validate(SchemaBuilder.java:1602)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:369)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:134)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121)
>        at 
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:445)
>        at 
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:368)
>        at 
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1898)
>        ... 13 more
>
>
> Please help, I could not proceed.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to