Im new here, so not sure if this is the right place to ask this. I also did some searching on here (and a million other places and couldn’t seem to find what was wrong).
Anyways, I need to make a SOAP call with a sequence in it, yet soapClient doesn’t seem to be converting my object into the correct soap call (it is leaving out the sequence). Below is the part of the wsdl that I cant seem to get, along with the object that I am sending, and lastly the request that soapClient is translating my object into.
Any help would be much appreciated.
wsdl:
<xs:element minOccurs="0" name="option.list">
<xs:complexType>
<xs:complexContent>
<xs:extension base="cmn:ArrayType">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="option.list">
<xs:complexType>
<xs:complexContent>
<xs:extension base="cmn:StructureType">
<xs:sequence>
<xs:element minOccurs="0" name="SubItemId" nillable="true" type="cmn:DecimalType"/>
<xs:element minOccurs="0" name="SubOptions" nillable="true" type="cmn:StringType"/>
<xs:element minOccurs="0" name="SubItemName" nillable="true" type="cmn:StringType"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
My Object:
[option.list] => Array
(
[0] => Array
(
[option.list] => Array
(
[SubItemId] => 0
[SubOptions] => <?xml version="1.0" encoding="UTF-8" standalone="yes"?><form><select id="DBMS" label="DBMS type:" style="combo">MS SQL<option label="" /><option id="0" label="DB2">DB2</option><option id="1" label="IMS">IMS</option><option id="2" label="MS SQL">MS SQL</option><option id="3" label="Oracle">Oracle</option><option id="4" label="UDB">UDB</option></select><select id="Type" label="lation Type:" style="combo">Add New Instance<option label="" /><option id="0" label="Add New Environment">Add New Environment</option><option id="1" label="Add New Instance">Add New Instance</option><option id="2" label="Add New Database">Add New Database</option><option id="3" label="Modify Environment">Modify Environment</option><option id="4" label="Modify Instance">Modify Instance</option><option id="5" label="Modify Database">Modify Database</option><option id="6" label="Retire Environment">Retire Environment</option><option id="7" label="Retire Instance">Retire Instance</option><option id="8" label="Retire Database">Retire Database</option></select><select id="Complexity" label="xity:" style="combo">Complex [+$2500.00]<option label="" /><option id="0" label="Simple [+$500.00]">Simple [+$500.00]</option><option id="1" label="Medium [+$1000.00]">Medium [+$1000.00]</option><option id="2" label="Complex [+$2500.00]">Complex [+$2500.00]</option></select><select id="RecoveryTier" label="rability Tier:" style="combo">Tier 2<option label="" /><option id="0" label="Tier 1">Tier 1</option><option id="1" label="Tier 2">Tier 2</option><option id="2" label="Tier 3">Tier 3</option></select><select id="Backup" label=" Backup Required?" style="combo">Yes<option label="" /><option id="0" label="Yes">Yes</option><option id="1" label="No">No</option></select><select id="Replication" label=" tables require replication?" style="combo">UDB Dprop<option label="" /><option id="0" label="UDB Dprop">UDB Dprop</option><option id="1" label="Goldengate">Goldengate</option><option id="2" label="ASM">ASM</option><option id="3" label="No">No</option></select></form>
[SubItemName] => DB Modification
)
)
)
request:
<ns1:option.list><ns1:option.list/></ns1:option.list>