Making SOAP requests using Postman

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 –

We give the request body as –

You can check it out yourself by using the WSDL. If you need to use the “getHolidaysAvailable” method defined in this WSDL, give the request body as –

SOAP requests using Postman

With tools like history, collections and environments, SOAP testing inside Postman becomes really easy. If you are using Postman for testing SOAP requests, do let us know in the comments.

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

Author: Abhinav

CEO @ Postman