Jump to content

How to obtain my SOAP call request in XML format?


guarriman

Recommended Posts

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.