soapClient problem with sequence
Posted: Tue Apr 30, 2013 8:32 pm
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:SubOptions>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:
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:SubOptions>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>