---
title: How to test SOAP Services with JMeter!
description: Loadium blog
image: https://cdn-images-1.medium.com/max/2560/1*61u3_eFFUFME4fUAz4HQxg.jpeg
---

[Skip to content](https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-3caef9a1#main-content)

 Sep 8, 2025 10:11:49 AM

# How to test SOAP Services with JMeter!

![Picture of Erdem KIRMIZI](https://explore.loadium.com/hs-fs/hubfs/bio.jpg?width=50&name=bio.jpg) [Erdem KIRMIZI](https://explore.loadium.com/loadium-blog/authors/erdem-kirmizi)

Share: [facebook-f icon](http://www.facebook.com/share.php?u=https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-3caef9a1) [linkedin-in icon](http://www.linkedin.com/shareArticle?mini=true&url=https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-3caef9a1) [Twitter icon](https://twitter.com/intent/tweet?url=https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-3caef9a1) [pinterest-p icon](http://pinterest.com/pin/create/link/?url=https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-3caef9a1) [envelope icon](mailto:?body=https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-3caef9a1)

![](https://cdn-images-1.medium.com/max/2560/1*61u3_eFFUFME4fUAz4HQxg.jpeg)

### How to test SOAP Services with JMeter!

**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 runs 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 services as an example. You can do simple Add, Subtract, Multiply and Divide operations. [http://www.dneonline.com/calculator.asmx](http://www.dneonline.com/calculator.asmx)

### Create Your First Service Call

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

![](https://cdn-images-1.medium.com/max/800/0*Yvxrfhb702N3-hME.png)

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

![](https://cdn-images-1.medium.com/max/800/0*ytan0uJeCIb5cviI.png)

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.

![](https://cdn-images-1.medium.com/max/800/0*4aezp18C7-nnlvqW.png)

- 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.

![](https://cdn-images-1.medium.com/max/800/0*G-kR9QpqMClvCZEK.png)

### 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>

![](https://cdn-images-1.medium.com/max/800/0*r0orfLBHT8nF2RfW.png)

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

*Not: There might be some cases where you need to specify custom-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.

You can read the orginal article at [https://loadium.com/blog/how-to-test-soap-services-with-JMeter/](https://loadium.com/blog/how-to-test-soap-services-with-jmeter/)

Happy Load testing!

## Related posts

[![](https://cdn-images-1.medium.com/max/800/1*gq6FewQYC5tdCWLNWO6L2w.jpeg)](https://explore.loadium.com/loadium-blog/what-is-stress-testing-in-software-testing)

[Stress Testing](https://explore.loadium.com/loadium-blog/tag/stress-testing)

## [What is Stress Testing in Software Testing?](https://explore.loadium.com/loadium-blog/what-is-stress-testing-in-software-testing)

![Picture of Erdem KIRMIZI](https://explore.loadium.com/hs-fs/hubfs/bio.jpg?width=50&name=bio.jpg) [Erdem KIRMIZI](https://explore.loadium.com/loadium-blog/authors/erdem-kirmizi) 

 Sep 8, 2025 10:20:00 AM

In software testing, stress testing is a crucial practice aimed at evaluating a system’s stability...

[Read more](https://explore.loadium.com/loadium-blog/what-is-stress-testing-in-software-testing)

[![](https://cdn-images-1.medium.com/max/2560/1*wEZOx6DLY3Nt9R9yxhkANQ.jpeg)](https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-4b089b07)

## [5 Technical Skills a Performance Tester should have](https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-4b089b07)

![Picture of Erdem KIRMIZI](https://explore.loadium.com/hs-fs/hubfs/bio.jpg?width=50&name=bio.jpg) [Erdem KIRMIZI](https://explore.loadium.com/loadium-blog/authors/erdem-kirmizi) 

 Sep 8, 2025 10:13:44 AM

What skills must a performance tester be capable of? Performance testing is defined as a testing...

[Read more](https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-4b089b07)

[![](https://cdn-images-1.medium.com/max/2560/1*wlBfpNnQlxIyABbWzYlIQQ.png)](https://explore.loadium.com/loadium-blog/top-10-essential-software-testing-skills)

[Stress Testing](https://explore.loadium.com/loadium-blog/tag/stress-testing), [Security Testing](https://explore.loadium.com/loadium-blog/tag/security-testing), [Continuous Testing](https://explore.loadium.com/loadium-blog/tag/continuous-testing), [Load Testing](https://explore.loadium.com/loadium-blog/tag/load-testing), [Visual Testing](https://explore.loadium.com/loadium-blog/tag/visual-testing)

## [Top 10 Essential Software Testing Skills](https://explore.loadium.com/loadium-blog/top-10-essential-software-testing-skills)

![Picture of Erdem KIRMIZI](https://explore.loadium.com/hs-fs/hubfs/bio.jpg?width=50&name=bio.jpg) [Erdem KIRMIZI](https://explore.loadium.com/loadium-blog/authors/erdem-kirmizi) 

 Sep 8, 2025 10:36:53 AM

# 1 Analytical and logical thinking In order to effectively identify the hidden errors, software...

[Read more](https://explore.loadium.com/loadium-blog/top-10-essential-software-testing-skills)

---

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Erdem KIRMIZI",
    "url" : "https://explore.loadium.com/loadium-blog/author/erdem-kirmizi"
  },
  "dateModified" : "2025-09-08T07:11:49.365Z",
  "datePublished" : "2025-09-08T07:11:49.000Z",
  "headline" : "How to test SOAP Services with JMeter!",
  "image" : [ "https://cdn-images-1.medium.com/max/2560/1*61u3_eFFUFME4fUAz4HQxg.jpeg" ],
  "mainEntityOfPage" : {
    "@id" : "https://explore.loadium.com/loadium-blog/best-practices-for-api-security-testing-1-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-0-1756-3caef9a1",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://explore.loadium.com/hubfs/Logo-1.png"
    },
    "name" : "Loadium"
  }
}
```