Re: [SOAP] Soap Client

[email protected] (Jeffery Fernandez)
Newsgroups php.soap
Organization Internet Vision Technologies
Message-ID <[email protected]>
On Thursday 01 November 2007 00:57, jogisarge wrote:
> Hello PHP-Users,
>
> i try to connect to a webservice but i had to send a defined xml-string.
> the xml data template given to me looks so:
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>   <soap:Header>
>     <LoginControl xmlns="http://server.de/o2Web/o2Con">
>       <username>string</username>
>       <password>string</password>
>     </LoginControl>
>   </soap:Header>
>   <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>
> </soap:Envelope>
>
>
> Ich habe mir die PHP doku bezüglich SOAP durchgelesen, aber leider ist mir
> unklar, wie ich diese Struktur mit diesen Mitteln hinbekomme.
>
> Mein erster Versucht war:
>
> $client = new
> SoapClient("https://server.de/o2Web/o2Con.asmx?WSDL",array('trace' => 1));
> $parms = array('Quantity' => 5,
>                'ItemID'   => 4757380);
> $result = $client->__soapCall("GetItemInfo",$parms);
>
>
> the webservice is protected by soap header.
> so i have to send a header with the login data like above.

Search this mailing list.. and example was given just a week ago.

cheers,
Jeffery
>
> can anybody help me please
> bye jogi
> --
> View this message in context:
> http://www.nabble.com/Soap-Client-tf4725175.html#a13509625 Sent from the
> Php - Soap mailing list archive at Nabble.com.

-- 
Internet Vision Technologies
Level 1, 520 Dorset Road
Croydon
Victoria - 3136
Australia
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBHKQWI5WXEviRz51oRAoDkAKC3y531BGUQ/RqZeG83VZ4ias6cjgCcC1C0
L5/mgB579DarwD90fCXulGU=
=uyNr
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.