JMeter FAQ on testing webservices

Q1: The “response data writer” output file remains empty after running my JMeter test.
  • Verify the location of your input xml file on your “Webservice (SOAP) Request” controller. The location might not be valid.
  • Check if the xml content in the soap body of your input file has a valid structure. Validate the xml against its XSD.
  • Have a look at the jmeter.log file in the \bin directory of JMeter. Usually JMeter logs an error when it encounters an unexpected exception.

Q2: After having changed the input xml file, JMeter seems to send the same old xml file content with its request.
  • Uncheck the "Memory Cache" option on the "Webservice (SOAP) Request" controller. By unchecking this option you make sure that the input xml file is read each time you send the webservice request.
Q3: JMeter doesn’t take my “HTTP Request Defaults” settings into account.
  • Make sure you don't overwrite the default settings with the settings on your "Webservice (SOAP) Request". Any connection setting after your “HTTP Request Defaults” gets priority.
Q4: My JMeter test result passes while the server is not running.
  • This can happen when you don't check for the server response code. To avoid this, add a response assertion checking the response code and fill in value "200" to check for. Response code 200 means the request succeeded. Next time the server is down, your response assertion checking for the response code will make your test fail.
Q5: I get a "java.lang.NoClassDefFoundError: javax/mail/MessagingException" exception when sending the SOAP Webservice request.

Do you know other solutions or tips and tricks for nasty JMeter problems? Add your comments in the post comment section and help other people having a better JMeter experience.

Related Posts by Categories


7 Responses to "JMeter FAQ on testing webservices"

Anonymous said... February 12, 2009 at 1:48 PM

i am testing a webservice in Jmeter(2.3.2)jdk1.6; which shows following error

jmeter.threads.JMeterThread: Thread Thread Group 1-1 started 2009/02/12 09:38:39 WARN -
[SOAPException: faultCode=SOAP-ENV:Client; msg=For input string: "4118 ";
TargetException=java.lang.NumberFormatException: For input string: "4118 “]
2009/02/12 09:38:39

Can anyone explain this?Any help and suggestion is appreciated.

Steven Machtelinckx said... February 12, 2009 at 2:57 PM


In which field did you fill in number '4118 '? Probably Jmeter complains about this as it expects a number but your value seems to contain a space: '4118 '. Could you retry after removing the space?



Umakanthan Chandran said... June 25, 2010 at 4:16 PM

I have little problem using secure webservice with Jmeter. I have added "Jmeter Authorization Manager" with credentials. But still getting 401 error.

Tanu said... June 20, 2012 at 1:02 PM

I am new for webservice testing, please let me know what input xml file I have to add in sampler. And where it exist.

Malla said... March 22, 2013 at 10:48 AM

This is great!


TestWithUs said... May 7, 2013 at 6:26 AM

SWIFT Interview questions on

For selenium solution visit

For QTP interview questions

TestWithUs said... May 7, 2013 at 6:53 AM

SWIFT Interview questions on

For selenium solution visit

For QTP interview questions

Post a Comment

Recent Articles

Top Commenters

Recent Comments