Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.2
-
Unknown
Description
Here is an example of WSDL complexType with any element:
<complexType name="SomeType"> <sequence> <element name="arg1" type="xsd:int"/> <any maxOccurs="unbounded" minOccurs="0"/> </sequence> </complexType>
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