DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Consuming SOAP Service With Apache CXF and Spring
  • Spring Boot: Test Restful Web Service Using Curl Client
  • Web Service Testing Using Neoload
  • Spring Boot - How To Use Native SQL Queries | Restful Web Services

Trending

  • How to Build Scalable Mobile Apps With React Native: A Step-by-Step Guide
  • Scaling Mobile App Performance: How We Cut Screen Load Time From 8s to 2s
  • Chaos Engineering for Microservices
  • Testing SingleStore's MCP Server
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. How to Test SOAP Services With JMeter

How to Test SOAP Services With JMeter

The SOAP protocol is used in a variety of messaging systems. Learn how to test SOAP services using JMeter in this tutorial.

By 
Canberk Akduygu user avatar
Canberk Akduygu
·
Updated Oct. 29, 18 · Tutorial
Likes (8)
Comment
Save
Tweet
Share
41.4K Views

Join the DZone community and get the full member experience.

Join For Free

SOAP is a messaging protocol specification for exchanging structured information in the implementation of web services. Its purpose is to induce extensibility, neutrality, and independence. It uses XML Information Set for its message format and relies on application layer protocols.

SOAP is used in a variety of messaging systems. It is delivered via a variety of transport protocols and the initial focus of SOAP is remote procedure calls transported via HTTP.

Many applications run on web services in today’s world. Some of them run on SOAP services, some of them on RESTFUL services which support the JSON messaging format. That’s why performing a load test on these messaging protocols is crucial.

We’ll explain how to test these kinds of web services via, open source, Apache JMeter testing tool. We’ll use a simple calculator web service as an example. You can do simple Add, Subtract, Multiply and Divide operations.

Create Your First Service Call

Create a Thread Group and Add an HTTP sampler as a child element to it.HTTP Sampler

In this HTTP Sampler, you have to fill some fields;

SOAP_JMETER_WEB_SERVICES

  1. The protocol must be filled out to specify if it’s an HTTPS or HTTP.
  2. The server name must be filled out with the IP address or the domain name.
  3. A method is the most crucial one. You have many options. You need to know which method you are able to run on that web services. The method can be POST, GET, PUT, DELETE, etc…
  4. The path must be filled out to specify the endpoint of the web services. 

Note: It would be the best practice to separate the server name and path from each other. In case there’s any change in the test environment, server name may change but the method is likely to stay as the same.

Implement a GET Request

Send a GET request to get operation supported by your SOAP web services. Fill the path as calculator.asmx?WSDL (web services description language). This is the first web service call.

Get WSDL

Add a View Results Tree Listener into your test to analyze the results.

Run your test and you will receive a response from the web service. If you take a look at the response, you’ll be able to see the operations name and parameters to send to these services. In this example, Add is an operation and it takes two integer parameters with intA and intB as variables name.

Implement a POST Request

Let’s implement a POST request to one of the supported operations.

Change the Path to /calculator.asmx and send below payload with it as seen in the picture:

<?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>
<Add
xmlns=”http://tempuri.org/”>
<intA>20</intA>
<intB>5</intB>
</Add>
</soap:Body>
</soap:Envelope>

Post Body Data Message

Implement the other services by following the first example. Now you’re ready to go.

Note: There might be some cases where you need to specify headers to your web services. Header refers to supplemental data placed at the beginning of a block of data being stored or transmitted like content type, HTTP version, user agent, etc. In case you have such a requirement, just add an HTTP Header Manager to your sampler as follows. Content will change according to your web services.

Run your test once again and see the results flow like a charm. 

Happy load testing!

SOAP Web Protocols Web Service Testing

Published at DZone with permission of Canberk Akduygu. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Consuming SOAP Service With Apache CXF and Spring
  • Spring Boot: Test Restful Web Service Using Curl Client
  • Web Service Testing Using Neoload
  • Spring Boot - How To Use Native SQL Queries | Restful Web Services

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!