Soap Anfrage an Webservice

Hallo zusammen,

ich möchte einen Webservice ansprechen.
Die Anfrage muss so aussehen:

<?xml version=3D"1.0" encoding=3D"utf-8"?>
<soap:Envelope xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"
xmlns:soap=3D"http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<LoginControl xmlns=3D"http://server.de/o2Web/o2Con">
<username>string</username>
<password>string</password>
</LoginControl>
</soap:Header>
<soap:Body>
<GetItemInfo xmlns=3D"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>
</soap:Envelope>

Ich habe mir die PHP doku bezüglich SOAP durchgelesen, aber leider
nicht kapiert, wie ich das anstelle, dass die Anfrage wie oben
beschrieben ausssieht.


Mein erster Versucht war:

$client =3D new SoapClient("https://server.de/o2Web/o2Con.asmx?
WSDL",array('trace' =3D> 1));
$result =3D $client->__soapCall("GetItemInfo", array("ItemID" =3D>
"3434","Quantity" =3D> "5"));

kann mir bitte jemand helfen ?

Gruß jogi
jogisarge [ Mi, 31 Oktober 2007 09:40 ] [ ID #1859274 ]
PHP » de.comp.lang.php.misc » Soap Anfrage an Webservice

Vorheriges Thema: Brauchbare Chat-Implementierung in PHP/MySQL gesucht
Nächstes Thema: test