JMeter – Remove empty elements in SOAP request

Tags:
JMeter
SOAP
XML
I am using SOAP/XML variables for a CSV Data Set Config request in JMeter. My problem is, when some variables are empty, I get a validation error caused by this so I need to get rid of those. There is very similar topic, well described (Jmeter remove empty strings at a SOAP/XML request), but unfortunately the solution is not working for me, I am getting:
meter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``String data = sampler.getXmlData(); data = data.replaceAll("",""); . . . '' : Typed variable declaration : Error in method invocation: Method getXmlData() not found in class'org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy'
Can anyone help me with this?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: