guarriman Posted March 12, 2008 Share Posted March 12, 2008 Hi. Using PHP5 + SOAP, I'd like to obtain my SOAP call request in XML format. For instance: POST /UsersData.asmx HTTP/1.1 Host: lab.webservice.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://lab.webservice.com/isValidUser" <?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> <isValidUser xmlns="http://lab.webservice.com/"> <UserId>int</UserId> <lastName>string</lastName> </isValidUser> </soap:Body> </soap:Envelope> I use this piece of PHP code: $client = new SoapClient($wsdl, array('trace'=>true, 'exceptions'=>true)); $response = $client->__call('isValidUser', $options); What might I include in my PHP code to get this request? Thank you very much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.