I'm trying to build a jmeter (v2.12) test plan that will call a web service. I'm using SOAP/XML-RPC Request sampler in order to do it. But, one argument of the request must by dynamic, and I was thinking about using a JDBC PreProcessor.
I'm able to execute the soap request, it's working, but I'm not able to make it dynamic, passing values extracted from the jdbc preprocessor.
My test plan looks like:
The JDBC Connection Configuration looks like:
Then, I defined the JDBC PreProcessor as:
And finally my SOAP request looks like:
Notice that I modified the soap request and included the ${id}, but, When I run the test plan, my web service returns an error telling that Unmarshalling Error: For input string: "${id}". So, as you can see, jMeter did not replaced the variable with the return from the database.
So, my question is, how do I do this kind of test plan (dynamic soap/xml-rcp request with jdbc preprocessor)?