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?
Let's say the incoming request has
<ns1:foo>
<ns3:data>
<ns3:CustomerNumber>1234</ns3:CustomerNumber>
</ns3:data>
</ns1:foo>
How do I get the "1234" into a Groovy variable? I tried with an xmlHolder but I seem to have the wrong XPath.
(I know how to set a property and integrate its value into the response already.)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…