axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3891) Unwrapping failure at XmlSchemaChoice element
Date Sat, 25 Dec 2010 08:58:47 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amila Chinthaka Suriarachchi resolved AXIS2-3891.
-------------------------------------------------

    Resolution: Fixed

Unwrapping works only for the xsd:sequence which contains a set of schema elements.

> Unwrapping failure at XmlSchemaChoice element
> ---------------------------------------------
>
>                 Key: AXIS2-3891
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3891
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4
>         Environment: WinXP, rampart-1.4, WSDL with multiple complex XSDs
>            Reporter: Thomas Poetter
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: CodeGenerationEngine.java, SchemaUnwrapperExtension.java
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> This stack trace was generated AFTER applying the (later) attached extensions for more
verbose error reporting ("org.apache.ws.commons.schema.XmlSchemaChoice@1292d26" as causing
element was output because of these extensions) :
> Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
> : org.apache.axis2.wsdl.codegen.CodeGenerationException: Unsupported Schema form
> at for unwrapping! found unknown type: org.apache.ws.commons.schema.XmlSchemaChoice@1292d26
but expected Element
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
> ationEngine.java:281)
>         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.wsdl.codegen.CodeGenerationException: Unsupported Schema
format for unwrapping! found unknown type: org.apache.ws.commons.schema.XmlSchemaChoice@1292d26
but expected Element
>         at org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.processXMLSchemaSequence(SchemaUnwrapperExtension.java:389)
>         at org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.handleAllCasesOfComplexTypes(SchemaUnwrapperExtension.java:217)
>         at org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.walkSchema(SchemaUnwrapperExtension.java:162)
>         at org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.engage(SchemaUnwrapperExtension.java:113)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>         ... 2 more
> C:\Develop\Tools\axis2-1.4\bin>
> The WSDL is confidential as also the specific schemata. Security annotations were made
to an existing WSDL along the lines of the example given by the Rampart tutorial at: 
> http://wso2.org/library/3190 and this WSDL: http://wso2.org/files/UToverHTTPS.xml 
> Public XSDs can be retrieved from here: 
> http://www.iso20022.org/catalogue_of_unifi_messages.page
> Does anybody have a hint why unwrapping fails? Are XSD choice elements not supported
in combination with multiple XSDs?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message