PHP - SOAP 1.1 request and response handling in php -


i trying integrate netforum. needs soap requests. following sample soap 1.1 request , response, don't know how implement in php.

request:

post /xweb/netforumxmlondemand.asmx http/1.1 host: nftpsandbox.avectra.com content-type: text/xml; charset=utf-8 content-length: length soapaction: "http://www.avectra.com/ondemand/2005/newindividualinformation"  <?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>     <authorizationtoken xmlns="http://www.avectra.com/ondemand/2005/">       <token>string</token>     </authorizationtoken>   </soap:header>   <soap:body>     <newindividualinformation xmlns="http://www.avectra.com/ondemand/2005/">       <onode>xml</onode>     </newindividualinformation>   </soap:body> </soap:envelope> 

response -

http/1.1 200 ok content-type: text/xml; charset=utf-8 content-length: length  <?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>     <authorizationtoken xmlns="http://www.avectra.com/ondemand/2005/">       <token>string</token>     </authorizationtoken>   </soap:header>   <soap:body>     <newindividualinformationresponse xmlns="http://www.avectra.com/ondemand/2005/">       <newindividualinformationresult>xml</newindividualinformationresult>     </newindividualinformationresponse>   </soap:body> </soap:envelope> 

php has built-in support through soap extension (activated in recent configs). background behind available through http://php.net/manual/en/book.soap.php. soap lets perform remote calls if performing them on own objects have little raw data you're posting.

basically functions of php's soap extensions split soapclient class , soapserver class. former 1 you're going need. have @ http://www.php.net/manual/en/soapclient.dorequest.php , check api docs kind of requests can make.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -