Using JMeter to load test SOAP based web service

The Using JMeter for load testing REST service entry talks about how to test REST service using JMeter, but what if you have JAX-WS service that you want to load test with JMEter, if that's the case you have to make one simple change and same script should work. You can download the sample load script from here My sample JAX-WS service has insertContact method that takes Contact object as input, i want to pass different firstName, lastNames to this service. So that first contact that gets inserted as values like [firstName-1,lastName-1,email] and then the second contact should be [firstName-2,lastName-2,email],.. etc. I followed these steps. You can download the sample JAX-WS that i used for testing from here You can follow same steps from 1-5 as in Using JMeter for load testing REST service , only thing that will change will be step 4, While testing REST service the step 4 was to make HTTP request, in case of SOAP service the step 4 is to make SOAP/XML-RPC request like this.
I used one of the SOAP testing tools like Generic Test Client in the RAD to get the basic SOAP request XML which looks like this

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns1="http://ws.webspherenotes.com/">
<soapenv:Body>
<tns1:insertContact>
<arg0>
<contactId>0</contactId>
<email>test@gmail.com</email>
<firstName>firstName-${contactId}</firstName>
<lastName>lastname-${contactId}</lastName>
</arg0>
</tns1:insertContact>
</soapenv:Body>
</soapenv:Envelope>
Then i just changed this xml to use dynamic variables.

4 comments:

Software Development Company said...

Hello,
The Article on Using JMeter to load test SOAP based web service, gives detailed information about it. Thanks for Sharing the information about Load Testing of Web Services, For More information check the detail on the load testing process here Software Testing Company

srjwebsolutions said...


We are leading responsive website designing and development company in Noida.
We are offering mobile friendly responsive website designing, website development, e-commerce website, seo service and sem services in Noida.

Responsive Website Designing Company in Noida
Website Designing Company in Noida
SEO Services in Noida
SMO Services in Noida

Vikas Chaudhary said...

Battery Mantra is Authorized exide car battery dealer in Noida and Greater Noida. We are providing our service in Indirapuram, Delhi, Ashok Nagar.

Exide Battery Dealer in Noida
Battery Dealer in Noida
Authorized Battery Dealer in Noida
Car Battery Dealer in Noida
Car Battery Dealer
Exide Battery Dealer

EG MEDI said...

Egmedi.com is online medical store pharmacy in laxmi nagar Delhi. You can Order prescription/OTC medicines online. Cash on Delivery available. Free Home Delivery


Online Pharmacy in Delhi
Buy Online medicine in Delhi
Online Pharmacy in laxmi nagar
Buy Online medicine in laxmi nagar
Onine Medical Store in Delhi
Online Medical store in laxmi nagar
Online medicine store in delhi
online medicine store in laxmi nagar
Purchase Medicine Online
Online Pharmacy India
Online Medical Store