[ http://issues.apache.org/jira/browse/AXIS2-382?page=comments#action_12363925 ]
Ajith Harshana Ranabahu commented on AXIS2-382: ----------------------------------------------- The latest snapshot build has the capability to process this WSDL even with ADB. I tried the generated code and seems to be working (Since I don't have a username. password I cannot go beyond login which returns a Invalid login message) We would appreciate if Simon can have a look and see whether it works properly. > WSDL2Code stops with confusing exception message > ------------------------------------------------ > > Key: AXIS2-382 > URL: http://issues.apache.org/jira/browse/AXIS2-382 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: wsdl > Versions: 0.94 > Environment: JDK 1.5, Win XP > Reporter: Simon Fell > Attachments: enterprise.wsdl > > running wsdl2code -uri enterprise.wsdl > stops with this exception > RuntimeException: Schema for namespace 'urn:enterprise.soap.sforce.com' > already contains type 'string > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:118) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31) > Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Schema for > namespace 'urn:enterprise.soap.sforce.com' > already contains type 'string > at > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:152) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:80) > ... 1 more > Caused by: java.lang.RuntimeException: Schema for namespace > 'urn:enterprise.soap.sforce.com' already contains type 'stri > ng > at org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:237) > at > org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:98) > at > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:233) > at > org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:86) > ... 2 more > Nothing in the WSDL defines a type called string -- 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