2020 Update: If you want to read the latest about SOAP requests, check out our new 2020 version of Making Soap Requests with Postman.
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>
How’s your experience making SOAP requests in Postman? Let us know in the comments below.