[
https://issues.apache.org/jira/browse/AXIS2-5391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
lakmali erandi baminiwatta updated AXIS2-5391:
----------------------------------------------
Attachment: AXIS2-5391.diff
Attached the patch (created for axis2-trunk) which fixes the issue.
> AxisService2WSDL20 fails to return the WSDL 2.0 styles when the schema has a
> ComplexElement with XmlSchemaAny
> -------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-5391
> URL: https://issues.apache.org/jira/browse/AXIS2-5391
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.6.1
> Reporter: lakmali erandi baminiwatta
> Attachments: AXIS2-5391.diff
>
>
> When the outmessage has a schema element as below,
> <xs:element name="DATA_SERVICE_RESPONSE">
> <xs:complexType>
> <xs:sequence>
> <xs:any minOccurs="0"/>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> and when AxisService2WSDL20 checkStyle has got invoked, the following
> exception is thrown for <xs:any minOccurs="0"/>
> Caused by: java.lang.ClassCastException:
> org.apache.ws.commons.schema.XmlSchemaAny cannot be cast to
> org.apache.ws.commons.schema.XmlSchemaElement
> at
> org.apache.axis2.description.AxisService2WSDL20.checkStyle(AxisService2WSDL20.java:711)
> at
> org.apache.axis2.description.AxisService2WSDL20.generateInterfaceOperationElement(AxisService2WSDL20.java:502).
> at
> org.apache.axis2.description.AxisService2WSDL20.getInterfaceElement(AxisService2WSDL20.java:421)
> at
> org.apache.axis2.description.AxisService2WSDL20.generateOM(AxisService2WSDL20.java:223)
> at
> org.apache.axis2.description.AxisService.printWSDL2(AxisService.java:1785)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]