How to turn xml string in a REST request parameter in SOAPUI OS Edition
Hello,
I feel like my question is soooo easy to answer, but I could'nt find any answer after a 2hours search on the web.
I have a POST request on a REST endpoint. This request only have 1 parameter, the value of this parameter is an xml string.
It works well when I put the xml string in the value field. I get a normal xml response as expected.
But the value field is not easy to read when the xml string is quite long. So I intend to put the xml string below in the xml/text media Type Field and put the reference to this string in the value of the parameter.
The question is : what reference should I input in the value field to let it be replaced by the xml string below ?
I check the xml version of my SOAPUI projet and could see that the xml string is in the <con:request> tag.
I feel like I should have to input something like $request or ${request} but it does not work.
Please see the screenshot to get a better understanding (I took the screenshot with the www-form-urlencoded value but I tried text/aml and application/xml with no success)
Thanks in advance
ā
Dear Richie
thanks for your quick reply. Your answer + link took me to test things and one of them finally worked !
I don't understand how it works but it works exactly as I expected.
Here is the screenshot to my configuration (I only blurred the host as requested).
Thanks to you