Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6163

WSDL Javascript generator for xsd:any elements is not correct when any is optional

    XMLWordPrintableJSON

Details

    • 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

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            DemonShi Andrii Nikitiuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: