Postman makes SOAP requests too

Frequently called a REST client, Postman is actually a tool that handles any calls sent over HTTP. Since SOAP is agnostic with regards to the underlying transport protocol, Postman easily handles SOAP calls too.

A lot of web and mobile developers have chosen to transition new code to the REST (REpresentational State Transfer) architectural style, but a significant part of the development community still runs on SOAP (Simple Object Access Protocol). A number of these teams are maintaining legacy codebases, work with large enterprise customers who rely on SOAP, or have strict security requirements that are not satisfied by newer technologies.

Lots of developers use Postman for making HTTP SOAP requests. Here’s how:

  1. Enter the SOAP endpoint as the request URL in Postman.
  2. Set the request method to POST.
  3. Under the Body tab, set the body type to raw and select XML (text/xml) from the dropdown. This will automatically add the correct Content-Type header as can be seen under the Headers tab. While REST typically uses JSON and other data formats, SOAP relies on XML.
  4. In the request body, define the SOAP envelope, body, and header tags. Start with the the required SOAP envelope tag and define all the namespaces. Enter the SOAP body and headers. The name of the SOAP method (operation) should be specified in the SOAP body, for example:

This example uses a holiday web service to query which holidays occur in the month of November.

And there you have it! Postman is a versatile tool to handle both your REST and SOAP testing and development.

This is an update of the originally published article