Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Postman Tutorial Part 54 – Testing SOAP API(WSDL) Using Postman

Posted on 03/16/2025 By admin

As a part of Postman Tutorial – End to End, in this post, we will learn to test a SOAP API using the Postman tool.

The purpose of this post is to make you aware that the Postman tool is not only for the REST API Testing. We can test REST, SOAP, and GraphQL requests directly within Postman. Although more than 71% APIs are developed using REST and now GraphQL is also being used. But there are some traditional APIs that are based on SOAP and you may need to interact with them sometimes. So having knowledge of testing a SOAP API using the Postman tool will be good. It is also asked in interviews as well.

  1. You should have a preferably native Postman app installed on your system.

http://calculator-webservice.mybluemix.net/calculator?wsdl

Public SOAP APIs by Postman

Make sure the Postman tool is installed in our system. If not then download it from here. Launch it after downloading and installing,

Let’s use Calculator WSDL for this demo. Copy and paste Calculator WSDL in the address bar as below. Select the HTTP method as POST as mostly SOAP APIs use POST. It may be GET also which can be confirmed from the API documentation which is provided by APIs developers.

Since APIs based on SOAP supports XML as a message format, we need to pass XML request body. Ideally, you should get an API document where the expected request body of an API will be given. You can see that information is given in demo SOAP APIs provided by Postman here. It gives information like supported HTTP method, required headers, and expected request body.

But for Calculator APIs we do not have any documents. Sometimes a developer will share only the WSDL file. In that case, you can use SOAP UI tool to know operations supported by the WSDL file and their request body and other information about APIs.

You can download and install SOAP UI Open Source from the link. installation is very easy like any other normal software. Once installed launch it.

Click on “SOAP” to create a new SOAP project.

Enter WSDL in “Initial WSDL” field. It will fetch the project name automatically. Make sure you have checked “Create sample requests for all operations“. It is by default checked. Click on “OK“.

You should see the project will be loaded with all possible operations from WSDL i.e. add, divide, multiply, and subtract.

When we expand any operation we will see the request body. To see request body click on “Request 1“.

Copy whole XML request body and paste in Postman request body.

You may be thinking we copied request for “add” operation from SOAP UI then there should be a different URI for that operations as well. It is generally followed in REST APIs but in SOAP, WSDL has all the information on supported operations. So which operations will be performed that depends upon the request body. If you observe above XML request body carefully, you can see . It represents an “add” operation. Similarly, you can see different request bodies in SOAP UI and observe the difference.

Once we get the expected request body then we need to fill in required values. For the above SOAP API, we need to pass values of intA and intB which we see in XML body. You need to be aware of functionalities and expected input values of APIs.

Generally, we need to set Content-Type for SOAP APIs as text/xml. This information you can get from API documentation as well. Remember for older SOAP APIs or REST APIs, application/xml will not work.

When we hit the “Send” button, we will get an XML response for this API. A response may be a normal text or different format other than XML as well. That all depends on APIs. You can see the status code as well.

If you have any doubt, feel free to comment below.If you like my posts, please like, comment, share and subscribe.#ThanksForReading

#HappyLearning

Uncategorized

Post navigation

Previous Post: Ruto
Next Post: Git Tutorial 9 – Git Clone – Get Local Copy Of Remote Repository

Related Posts

Amod Mahajan – Page 2 Uncategorized
Hierarchy of Classes & Interfaces of WebDriver Interface in Selenium WebDriver Uncategorized
Git Tutorial 13 – What Is A Branch In Git? Uncategorized
ScrollInToView3 – Make Selenium Easy Uncategorized
TestNG Tutorials 17: Can @Test Annotation Be Used For A Class In TestNG? Uncategorized
TestNG Tutorials 55: DataProvider in TestNG – Lazy Initialisation of DataProvider Method – Use of Iterator Return Type | Make Selenium Easy Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark