Jump to content

soapClient problem with sequence and generated SOAP


mrosenello

Recommended Posts

I did some searching on this issue and all the solutions that seemed to be similar did not work for my problem.

 

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
                                        )

                                )

                        )

generated request:

<ns1:option.list><ns1:option.list/></ns1:option.list>
Edited by mrosenello
Link to comment
Share on other sites

Any ideas on some other things I could try in order to have the soap envelope produce the desired request (ie <option.list><option.list><SubItemId>0</SubItemId><SubOptions>some text</SubOptions><SubItemName></option.list></option.list> ). With repeating inside option.list elements?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.