This is probably a very easy one for all SoapUI regulars.
In a SoapUI mock service response script, how do I extract the value inside the request I\'m replying to?<
Extending http://www.soapui.org/soap-mocking/creating-dynamic-mockservices.html and based on http://www.soapui.org/apidocs/com/eviware/soapui/support/xmlholder.html I came up with this:
// Create XmlHolder for request content
def holder = new com.eviware.soapui.support.XmlHolder( mockRequest.requestContent )
holder.namespaces["ns3"] = "ns3"
// Get arguments
def custNo = holder.getNodeValue("//ns3:CustomerNumber")
context.setProperty("custNo", custNo)