Making SOAP requests using Postman

Chamath Wijesuriya
2 min readOct 24, 2019

--

Before we start this will get to know about what is SOAP and Postman

What is SOAP?

SOAP stands for Simple Object Access Protocol. it is an application communication protocol for sending and receiving messages. It’s based on XML and is platform independent.

What is Postman?

Postman is currently one of the most popular tools used in API testing.

This is a sample SOAP request

POST /codapi/Service1.asmx HTTP/1.1
Host: webapp.tcscourier.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://202.61.51.93:6265/GetAllCountries"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetAllCountries xmlns="http://202.61.51.93:6265/" />
</soap:Body>
</soap:Envelope>

First step is to open Postman client window and then click “NEW” at top left most window position, followed by “Request” (Create a basic request) button.

Now name the request and save into the collection.

Change request method to POST, and enter url (combining Host and POST) data from the request part:

Then browse to “raw” section under “Body” tab, Copy and paste XML soap request into the editor and select content type as XML (text/xml).

Now hit send, you will see the output as XML format.

That’s it, this is the response we are actually expecting

--

--