Logo
Logo
  • Services
    • Image Not Found
      Let's Explore
      Testing & SQA Services
      Image Not Found
      Hire Now
      SQA Experts Augmentation
      Image Not Found
      Enroll Now
      Learn with QAHarbor
      Image Not Found
      Visit Now
      QA Jobs
      Image Not Found
      Watch Intro Video
  • Blog & News
    • SQA Blog
    • SQA News
  • About Us
  • Get consultant

[Part 02] API Testing Basics: SOAP API

  1. Home
  2. Blog Single
[Part 02] API Testing Basics: SOAP API
  • August 28, 2024
  • INFOQA
API Testing Basics: SOAP API & REST API

The World Wide Web Consortium (W3C) and its collaborators created the messaging standard, SOAP, or Simple Object Access Protocol. XML is used as the data format to define request and answer messages. XML Schema and related technologies ensure the data’s structure and consistency.

What is SOAP API?

SOAP is a common interface used by private and public Application Programming Interfaces (APIs). All types of businesses create and use SOAP APIs, though they are more common in bigger organisations.

Four unique aspects are provided by SOAP, which utilises XML as the data format for messages delivered and received by an API client:

  1. Envelope: The envelope defines the message’s structure.
  2. Encoding: Rules for defining the nature of data are called encoding.
  3. Requests: How is each SOAP API request structured?
  4. Reactions: How each SOAP API response is structured.

Making SOAP Requests with Postman

In Postman, you should select the HTTP POST method to send a SOAP request. SOAP requests are typically sent using the HTTP POST method because the SOAP message, including the request envelope and data, is included in the body of the POST request. Here’s how to send a SOAP request in Postman:

  1. Open the Postman application.
  2. To open an HTTP request, select New > HTTP.
API Testing Basics SOAP API
  1. Enter your SOAP endpoint URL in the address field. For this example, use the following endpoint URL:

https://www.dataaccess.com/webservicesserver/NumberConversion.wso

  1. From the list of available request methods, choose POST.
API Testing Basics SOAP API

Adding body data

  1. Select raw from the Body tab and XML from the dropdown menu.
API Testing Basics SOAP API
  1. In the text entry field, enter your XML. The following XML should be entered in the text entry box to test the number conversion SOAP API used in the previous section:
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns_soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <NumberToWords > <ubiNum>500</ubiNum> </NumberToWords> </soap:Body> </soap:Envelope>

Your request body must include the SOAP Envelope, Header, and Body tags as required by the endpoint and any namespaces. The data must include the operation’s name and any values you must post to the service.

Setting your request headers

Postman automatically adds an application/xml content-type header when you specify an XML body type. But for some SOAP calls, you may need text/xml, depending on your service provider. To determine which header is suitable, check with your SOAP service. If the text/xml header is required, change Postman’s default configuration.

To set request headers, do the following:

  1. Open the request Headers. If the auto-generated headers are hidden, select hidden to display them.
  2. Clear the Content-Type header, which was automatically added.
  3. Add a new key-value pair, content type, and text/xml.
  4. Add another key-value pair, SOAPAction and “#MethodName”(in this example, “#POST”).
API Testing Basics SOAP API

Sending your request

Select Send to make your call to the SOAP service. Postman displays the response in the lower tab if your call is successful.

API Testing Basics SOAP API

If we follow the steps properly, according to the provided request, a response message will be displayed to the user along with the expected result. To identify the response message, please visit the following link and check out what the response message is trying to say:

Reference:

  • HTTP Status Codes
  • SOAP API
  • What Is a SOAP API?
  • Make HTTP calls using the SOAP protocol

Previous Part:

  • [Part 01] API Testing Basics: SOAP API & REST API

Next Part:

  • [Part 03] API Testing Basics: Practical Tips

Tags:

API Testing Basics REST API SOAP API Software Quality Assurance
Previous Post
[Part 01] API Testing Basics: SOAP API & REST API
Next Post
[Part 03] API Testing Basics: Practical Tips

Leave a comments Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Enroll in Software QA Training Program – 360H ABL-Based Employability Course
  • Software Quality Assurance Services in Dhaka
  • SQA Tools Comparison: Choosing the Best Manual & Automated Testing Tools for Your Business
  • Software Quality Assurance (SQA) Cheat Sheet
  • The Future of Software Quality Assurance: Why This is the Best Career Choice

Categories

  • Featured (12)
  • Knowledgebase (16)
  • QA Library (3)
  • Software Quality Assurance (10)
    • Automation Testing (1)
    • Performance Testing (2)
  • SQA Fun Facts (9)
  • SQA Tips & Tricks (7)
  • SQA Tutorial (2)
  • Top Featured (7)

Recent Comments

    Tags

    Apache JMeter API Testing Automated testing solutions Automation Testing BugZilla Cheat sheet Cloud-Based Software Testing Common Software Testing Mistakes Continuous testing in DevOps Cypress Faster Software Releases Jira Kanban Katalon Studio Load Testing Optimize Testing Optimize Testing Process Outsourcing Software Testing Services Performance Testing Postman QA Pitfalls Regression Testing REST API Role of SQA Security Testing Shift-left testing approach Software Quality Assurance Software Releases Software Testing Software Testing Best Practices Software testing services SQA SQA Career SQA Cheat Sheet SQA consulting SQA Tester SQA Tools SQA Tools Comparison Test Automation Test automation frameworks 2025 Test Case Coverage Testing Framework Testing Process Tools User Experience Testing
    QAH-Transparent-Logo White
    QA Harbor Limited is a Quality Assurance Service Provider, highly driven in the software and service quality assurance arena.
    Our Location

    House #470, Road #31, Mohakhali DOHS, Dhaka-1212

    Quick Links

    • Company Profile
    • Contact Us
    • SQA Jobs
    • News & Blog

    Our Services

    • SQA Services
    • SQA Augmentation
    • SQA Training
    • E-Learning Login
    Join our subscribers list to get the latest news and special offers.
    © Copyright 2024. All Rights Reserved by QA Harbor Limited.
    • About
    • Privacy Policy
    • Terms of Service