You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org> on 2006/03/21 14:41:04 UTC

[jira] Resolved: (AXIS2-382) WSDL2Code stops with confusing exception message

     [ http://issues.apache.org/jira/browse/AXIS2-382?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-382:
-------------------------------------------

    Resolution: Fixed

Since Simon is silent and this feature has been around for a while without any complaints, I am marking this issue as resolved

> 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
>     Assignee: Ajith Harshana Ranabahu
>  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