Using .net webservice data in php

POST /Topblah.asmx HTTP/1.1
Host: client.blah.co.za
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: “http://www.blah.co.za/CheckClient
I need to pass client credentials into a .asmx webservice and return data using php. How do I input/read from this xml file?

<?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:Body> <CheckClient xmlns="http://www.blah.co.za/"> <PolicyNr>string</PolicyNr> <IDNumber>string</IDNumber> </CheckClient> </soap:Body> </soap:Envelope>

You should follow the information presented here.

http://php.net/manual/en/book.soap.php

Sponsor our Newsletter | Privacy Policy | Terms of Service