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
Content-Type: text/xml; charset=utf-8
<?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/">
<GetAllCountries xmlns="http://126.96.36.199:6265/" />
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