#12 SOAP: fails when repeating element has same tag as parent

closed
dmccrae
None
5
2009-03-18
2009-03-02
dmccrae
No

When repeating element has same name as its container, this error occurs:
"SOAPUnmarshalException: Mismatched end element for array value"

As illustrated by this schema fragment

<xs:complexType name="sampleData1">
<xs:sequence>
<xs:element name="data" type="tns:sampleData2" minOccurs="0"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="sampleData2">
<xs:sequence>
<xs:element name="address" type="xs:string" minOccurs="0"/>
<xs:element name="data" type="tns:sampleData3" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="sampleData3">
<xs:sequence>
<xs:element name="value1" type="xs:string" minOccurs="0"/>
<xs:element name="value2" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>

Discussion

  • dmccrae
    dmccrae
    2009-03-04

    Fixed (on v1.1 branch) by change 113

     
  • dmccrae
    dmccrae
    2009-03-04

    • status: open --> pending
     
    • status: pending --> closed
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).