soapClient problem with sequence

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mrosenello
Forum Newbie
Posts: 1
Joined: Tue Apr 30, 2013 8:23 pm

soapClient problem with sequence

Post by mrosenello »

Hello, I have been wracking my brain for days now trying to figure this out with no luck. I need to make a SOAP call and part of it is the following section of the WSDL and can not figure out a way to do it. It seems like no matter what I do, soapClient leaves out the inside elements of <option.list>, like this: [inline]<ns1:option.list><ns1:option.list/></ns1:option.list>[/inline].

Anyone have any ideas of how I could create an object that would resemble what this WSDL wants. (ie something like this: [inline]<ns2:option.list><ns2:option.list><ns2:SubItemId>0</ns2:SubItemId><ns2:SubOption‌​s>escaped xml here</ns2:SubOptions><ns2:SubItemName>DB Modification</ns2:SubItemName></ns2:option.list></ns2:option.list>[/inline]


Again, any help is much appreciated.

wsdl:

Code: Select all

<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>
Post Reply