[
https://issues.apache.org/jira/browse/CXF-6163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved CXF-6163.
------------------------------
Resolution: Fixed
Fix Version/s: 3.0.4
Assignee: Daniel Kulp
> WSDL Javascript generator for xsd:any elements is not correct when any is
> optional
> ----------------------------------------------------------------------------------
>
> Key: CXF-6163
> URL: https://issues.apache.org/jira/browse/CXF-6163
> Project: CXF
> Issue Type: Bug
> Components: JavaScript Client
> Affects Versions: 3.0.2
> Reporter: Andrii Nikitiuk
> Assignee: Daniel Kulp
> Priority: Minor
> Labels: javascript, optional, wsdl2js, xsd, xsd:any
> Fix For: 3.0.4
>
>
> Here is an example of WSDL complexType with any element:
> {code}
> <complexType name="SomeType">
> <sequence>
> <element name="arg1" type="xsd:int"/>
> <any maxOccurs="unbounded" minOccurs="0"/>
> </sequence>
> </complexType>
> {code}
> Here are some problems:
> * In generated Javascript this xsd:any element is marked as "required", while
> we have minOccurs="0"
> * Deserializer of this xsd:any element goes into infinite loop when there is
> nothing that can be threaten as xsd:any
> * Serializer also thinks of this xsd:any as required element and throws
> exception if it is null
> Expected behavior:
> * xsd:any should be threaten as optional element
> * parsing of XML with xsd:any element in WSDL should not hang
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)