Hi to all,
i have a problem using a webservice(.NET).
The webservice expects a body like this:
XML-Daten
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
| <soap:Body> <GetItemInfo xmlns="http://server.de/o2Web/o2Con"> <InItemsRows> <InItemsRow> <ItemID>int</ItemID> <Quantity>double</Quantity> </InItemsRow> <InItemsRow> <ItemID>int</ItemID> <Quantity>double</Quantity> </InItemsRow> </InItemsRows> </GetItemInfo> </soap:Body> |
i have no idea how to build the structure above with arrays.
my attempt looks like :
Quelltext
1: 2: 3: 4: 5:
| $client = new SoapClient("http://server.de/o2Web/o2Con?WSDL"); $p1 = new SoapParam(5,'Quantity'); $p2 = new SoapParam(4757380,'ItemID'); $parms = array($p1,$p2); $result = $client->__soapCall("GetItemInfo",$parms); |
the server throws an error:
Quelltext
1: 2:
| Der Server konnte die Anforderung nicht verarbeiten. --> Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. |
please help me, im new in Soap.
I searched for help in the php page, but i don't find an example that was easy to understand.
Bye jogi
Moderiert von Christian S.: Topic aus Web und Netzwerk verschoben am Di 06.11.2007 um 16:48
Moderiert von Christian S.: Replaced code with xml tags