How To Execute SOAP Request

Help Topics
Since SOAP is actually a special form of XML, you can call SOAP methods exposed via HTTP and view their responses. Let's assume that you have created SOAP method CreateUser that accepts two string parameters: firstName and lastName. To execute this method with SOAP request in HttpMaster, follow this procedure:
  • Open basic request window with the menu Tools - Basic Request.
  • Enter URL to your web service in the Execution URL field, for example, http://localhost/Service1.asmx.
  • Select POST method from the corresponding drop down.
  • Select String type from the Upload data type drop down.
  • Select application/soap+xml content type from the corresponding drop down.
  • Enter the following data in the String body data field:
    <?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
     <soap12:Body>
      <CreateUser xmlns="http://tempuri.org/">
       <firstName>John</firstName>
       <lastName>Doe</lastName>
      </CreateUser>
     </soap12:Body>
    </soap12:Envelope>
  • Execute the request with the corresponding button from the toolbar.