axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajith Harshana Ranabahu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-382) WSDL2Code stops with confusing exception message
Date Thu, 12 Jan 2006 04:36:20 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-382?page=comments#action_12362512 ] 

Ajith Harshana Ranabahu commented on AXIS2-382:
-----------------------------------------------

The problem is that ADB (which is the default now) does not know how to process complex content.
However the error message is completely meaningless and tends to mislead users away from the
real issue. This schema is correctly processed by xmlbeans and the generated code compiles
correctly.

> 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


Mime
View raw message