I have a wsdl defined as:
[url]http: // getthedrinksin.0sites.net / getmenuws.php ? wsdl[/url]
and when I run my webservice function I receive the following output:
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://getthedrinksin.0sites.net/Menus">
<SOAP-ENV:Body>
<ns1:getMenuResponse xmlns:ns1="http://getthedrinksin.0sites.net/Menus">
<return xsi:type="tns:Menu">
<menuname xsi:type="xsd:string">Prince Of Wales</menuname>
<menuid xsi:type="xsd:int">2</menuid>
<lastupdate xsi:type="xsd:string">2010-10-06</lastupdate>
<itemtype xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[1]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[3]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[1]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[3]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[1]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[3]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[2]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[10]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:nil="true" xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:nil="true" xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
</item>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[10]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:nil="true" xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
<item xsi:nil="true" xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
</item>
</item>
</item>
</item>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
</item>
</item>
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:ItemTypes[0]"/>
</item>
</itemtype>
</return>
</ns1:getMenuResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> |
and yet, if I print_r the array I return it look slike this:
Array
(
[menuname] => Prince Of Wales
[menuid] => 2
[lastupdate] => 2010-10-06
[itemtype] => Array
(
[0] => Array
(
[name] => Soft Drinks
[subtype] => Array
(
[0] => Array
(
[name] => Water
[subtype] => Array
(
[0] => Array
(
[name] => Still
[subtype] => Array
(
)
[items] => Array
(
[0] => Array
(
[name] => Ballygowan (plastic)
[itemtype] => Soft Drinks
[description] => 900
[itemid] => 1
[type] => 1
[country] => Scotland
[subtype] => Water
[subtype2] => Still
[subtype3] =>
[parentid] =>
)
[1] => Array
(
[name] => Buxton (plastic) 1.5ltr
[itemtype] => Soft Drinks
[description] => 949
[itemid] => 2
[type] => 1
[country] => Scotland
[subtype] => Water
[subtype2] => Still
[subtype3] =>
[parentid] =>
)
)
)
)
[items] => Array
(
)
)
)
[items] => Array
(
)
)
)
) |
and ideas anyone?
apologies for the formatting