Contributions
simple way of echoing request field from a request to the response in a REST XML mock
Hi, I am new to SoapUi and I need to setup a REST XML mock in which some fields from the request must be echoed in the response. I tried with doing the following // create XmlHolder for request content def holder = new com.eviware.soapui.support.XmlHolder( mockRequest.requestContent ) // get arguments def arg1 = holder["//startTime"] Then in the xml response body I added : <startTime>${arg1}</startTime> but what is sent is the exact string "${arg1}" not the content that was supposed to be put in arg1 How to proceed ? Thank you for helping761Views0likes1Comment