axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5391) AxisService2WSDL20 fails to return the WSDL 2.0 styles when the schema has a ComplexElement with XmlSchemaAny
Date Thu, 04 May 2017 21:56:04 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15997499#comment-15997499
] 

Andreas Veithen commented on AXIS2-5391:
----------------------------------------

The patch is missing a unit test.

> 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 was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
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