What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

How can I load and stress test my SOAP services with Webserver Stress Tool?



How can I perform tests (load test, stress test) on my SOAP servers? How do I use Webserver Stress Tool for that?

networking soap webserver-stress-tool

Created on Feb 24, 2010 8:51:31 AM by  Daniel Zobel [Product Manager]

Last change on Feb 24, 2010 8:52:07 AM by  Daniel Zobel [Product Manager]

1 Reply

Accepted Answer



Load and Stress Testing SOAP Servers and SOAP Services

With Webserver Stress Tool you can perform load and stress tests for SOAP Servers/SOAP Services.

SOAP method calls are nothing else than HTTP requests that send an XML dataset using a POST request to a webserver and then receive the results as an XML string.

Even though our web server performance software Webserver Stress Tool is not specialized in reading and writing the XML data for these requests, you can still use it as a load generator for your SOAP services.

This sample shows how to use Webserver Stress Tool. to issue a SOAP request to Google's Webservices API. Note: Of course you should refrain from load testing Google's webservers!

Step 1: Finding out Configuration Data

The trickiest thing of course is to find out the three input parameters. You must get this information from the SOAP server's documentation. For Google these are:

HTTP URL: http://api.google.com/search/beta2
SOAPACTION: "urn:GoogleSearchAction"

The XML-POSTDATA for the request should be stored into a file on your disk (see below for a sample for Google).

Step 2: Configuring Webserver Stress Tool

Having this information we can now set up the URL script for Webserver Stress Tool for our test. By setting a value for data.soapaction we instruct Webserver Stress Tool to actually send a SOAP request with content type "text/xml".

The content of the XML file and the necessary URL script can be found below.

Step 3: Running the Test

Now simply run the load test as usual with Webserver Stress Tool. Note that you need Version 7.0.2 or later to run this test.

Sample Code

XML Data

<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:GoogleSearch" xmlns:types="urn:GoogleSearch/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <key xsi:type="xsd:string">***PLACE YOUR GOOGLE API ACCESS KEY HERE***</key>
      <q xsi:type="xsd:string">paessler</q>
      <start xsi:type="xsd:int">0</start>
      <maxResults xsi:type="xsd:int">10</maxResults>
      <filter xsi:type="xsd:boolean">false</filter>
      <restrict xsi:type="xsd:string" />
      <safeSearch xsi:type="xsd:boolean">false</safeSearch>
      <lr xsi:type="xsd:string" />
      <ie xsi:type="xsd:string" />
      <oe xsi:type="xsd:string" />

URL Script

Sub OnBeforeClick
end Sub

Sub OnAfterClick
end sub

Sub OnbeforeRequest
end sub

Sub OnAfterRequest
end sub

Related Topics

Created on Feb 24, 2010 8:56:42 AM by  Daniel Zobel [Product Manager]

Last change on Feb 24, 2010 8:57:37 AM by  Daniel Zobel [Product Manager]

Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.