0
votes

I am using SOAP/XML-RPC request in jmeter. I have 2 questions

  1. If we have a rest endpoint with same url which can serve both GET and POST based on the HTTP method that is sent , how to send GET call using SOAP/XML-RPC request because it inherently sending only POST

  2. In the SOAP/XML-RPC Data I am sending like this

    clientid=${clientid}&&instanceid=${instanceid}

    and I want to send encoded data for ${instanceid}. How can I do it using the above sampler
    I know how to implement the above 2 things using HTTP Request sampler. But my requirement is specifically to use SOAP/XML-RPC sampler
    Any Help in this regard is greatly appreciated !!!
    Thanks in advance

1

1 Answers

0
votes

SOAP/XML-RPC Request sampler can send only HTTP POST requests by design. See SoapSampler.java code for reference.

If you need to encode your parameters somehow you can use:

If you need to send HTTP GET request you have to either use HTTP Request Sampler in combination with HTTP Header Manager to send "Content-Type" header with the value of "text/xml" or develop your own sampler on top of the SoapSampler.