Skip to content

Conversation

veewee
Copy link
Member

@veewee veewee commented Feb 10, 2025

Q A
Type improvement
BC Break no
Fixed issues

Summary

Add support for soap:Array types with complex content:

<complexType name="Foo">
    <all>
        <element name="id" type="string" />
    </all>
</complexType>
<complexType name="ArrayOfFoo" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/">
    <complexContent>
        <restriction base="soap-enc:Array">
            <attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:Foo[]"/>
        </restriction>
    </complexContent>
</complexType>
<element name="testType" minOccurs="1" maxOccurs="1" type="tns:ArrayOfFoo" />
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:tns="http://test-uri/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
  <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <tns:test>
          <testParam SOAP-ENC:arrayType="tns:Foo[2]" xsi:type="tns:ArrayOfFoo">
              <item xsi:type="tns:Foo">
                <id xsi:type="xsd:string">abc</id>
              </item>
              <item xsi:type="tns:Foo">
                <id xsi:type="xsd:string">def</id>
              </item>
          </testParam>
      </tns:test>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

@veewee veewee merged commit 5bd6663 into php-soap:main Feb 12, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant