View RSS Feed


Understanding JMeter Element- Webservice (SOAP) Request

Rate this Entry
by , 06-21-2015 at 01:52 AM (620 Views)
Understanding JMeter Element- Webservice (SOAP) Request

This sampler has been tested with IIS Webservice running .NET 1.0 and .NET 1.1. It has been tested with SUN JWSDP, IBM webservices, Axis and gSoap toolkit for C/C++. The sampler uses Apache SOAP driver to serialize the message and set the header with the correct SOAPAction. Right now the sampler doesn't support automatic WSDL handling, since Apache SOAP currently does not provide support for it. Both IBM and SUN provide WSDL drivers. There are 3 options for the post data: text area, external file, or directory. If you want the sampler to randomly select a message, use the directory. Otherwise, use the text area or a file. The if either the file or path are set, it will not use the message in the text area. If you need to test a soap service that uses different encoding, use the file or path. If you paste the message in to text area, it will not retain the encoding and will result in errors. Save your message to a file with the proper encoding, and the sampler will read it as java.io.FileInputStream.

An important note on the sampler is it will automatically use the proxy host and port passed to JMeter from command line, if those fields in the sampler are left blank. If a sampler has values in the proxy host and port text field, it will use the ones provided by the user. This behavior may not be what users expect.

By default, the webservice sampler sets SOAPHTTPConnection.setMaintainSession (true). If you need to maintain the session, add a blank Header Manager. The sampler uses the Header Manager to store the SOAPHTTPConnection object, since the version of apache soap does not provide a easy way to get and set the cookies.

Make sure you use <soap:Envelope rather than <Envelope.

Name- Descriptive name for this sampler that is shown in the tree.
WSDL URL- The WSDL URL with the service description. Versions of JMeter after 2.3.1 support the file: protocol for local WSDL files.
Web Methods- Will be populated from the WSDL when the Load WSDL button is pressed. Select one of the methods and press the Configure button to populate the Protocol, Server, Port, Path and SOAPAction fields.
Protocol- HTTP or HTTPS are acceptable protocol.
Server Name or IP- The hostname or IP address.
Port Number- Port Number
Timeout- Connection timeout.
Path- Path for the webservice.
SOAPAction- The SOAPAction defined in the webservice description or WSDL.
Soap/XML-RPC Data- The Soap XML message
Soap file- File containing soap message
Message(s) Folder- Folder containing soap files. Files are choose randomly during test.
Memory cache- When using external files, setting this causes the file to be processed once and caches the result. This may use a lot of memory if there are many different large files.
Read SOAP Response- Read the SOAP reponse (consumes performance). Permit to have assertions or post-processors
Use HTTP Proxy- Check box if http proxy should be used
Server Name or IP- Proxy hostname
Port Number- Proxy host port

Disclaimer: The article/post is posted with the purpose of sharing knowledge and information.
The article may contain references, extract or content from other informative sources.
Researched/Authored/Compiled by -
Ronak Shah
Practice Head - Software Testing (QA), CIGNEX Datamatics

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:47 PM.

Copyright BetaSoft Inc.