我有一個模擬響應,它需要返回請求中的值。例如,該請求可以進來:在SOAP UI模擬響應腳本中訪問請求XML
<myReqest><myValue>123</myValue></myRequest>
我已經有一個mockResponse:
<myResponse><yourValue>${theValue}</yourValue></myResponse>
我知道如何通過上下文變量設置爲$ {theValue}價值,但我可以」不知道如何訪問請求並解析它的值。
任何幫助將不勝感激。
感謝, 強尼
你可以發佈更多的代碼? – 2010-08-05 16:43:40
只需注意您的XML格式不正確。標記與結束標記不匹配。 –
Paddyslacker
2010-09-03 18:44:11