If this topic interests you, learn the latest about SOAP requests in Postman by reading our 2020 tutorial blog post here.  


This is a guest post by Ankit Dua, developer at BeeHyv Software Solutions. You can connect with Ankit on LinkedIn.

We know it says Postman “REST” client, but that doesn’t mean we can’t use it for making SOAP requests. One can easily make any HTTP SOAP request using Postman by following these simple steps:

1. Give the SOAP endpoint as the URL. If you are using a WSDL, then give the path to the WSDL as the URL.
2. Set the request method to POST.
3. Open the raw editor, and set the body type as “text/xml”.
4. In the request body, give the SOAP Envelope, Header and Body tags as required. Start by giving the SOAP Envelope tag, which is necessary, and define all the namespaces. Give the SOAP header and the body. The name of the SOAP method (operation) should be specified in the SOAP body. For example, for the WSDL operation “GetPostman” defined as –

<wsdl:operation name="GetPostman">
<http:operation location="/GetPostman"/>
.
.
.
</wsdl:operation>

We give the request body as –

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pm="https://www.postman.com/">
 <soapenv:Header></soapenv:Header>
 <soapenv:Body>
 <pm:GetPostman>
 .
 .
 .
 </pm:GetPostman>
 </soapenv:Body>
</soapenv:Envelope>

With tools like history, collections and environments, SOAP testing inside Postman becomes really easy.

 

How’s your experience making SOAP requests in Postman? Let us know in the comments below.