You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andrii Nikitiuk (JIRA)" <ji...@apache.org> on 2014/12/17 16:16:13 UTC

[jira] [Created] (CXF-6163) WSDL Javascript generator for xsd:any elements is not correct when any is optional

Andrii Nikitiuk created CXF-6163:
------------------------------------

             Summary: 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
            Priority: Minor


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)