Wednesday, March 30, 2016

Send SOAP request XML via PHP cURL


At times PHP SOAP can be problematic to work with. This may be due to lack of proper error handling within its internal structure. The SOAP Client class tends to ignore any HTTP error from the server. 

One way to by-pass this limitation with the soap client class is to send the raw soap request XML as http post with PHP cURL. With this, you can see the actual http server response even in situation where the soap client class would have returned nothing.

Enough of the story, let’s see how we can achieve this in practice

1 comment:

  1. Hello Gabriel,

    I have much appreciated your efforts and time dedicated to explain to us the SOAP Concept using PHP,
    I am working on SOAP and, still I am facing some Issue and would get your help at anytime possible

    Thanks
    Sam

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...