【发布时间】:2020-06-23 20:21:20
【问题描述】:
我正在尝试使用wiremock 获取一个xml 属性thoug soapXpath,但我做不到,这是我的SoapRequest。
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns2:Element>
<ns2:InnerElement attribute="value"></ns2:InnerElement>
</ns2:Element>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
这就是我试图获取属性值的方式。
{{soapXPath request.body '/Element/InnerElement[@RatePlanCode]/text()'}}
响应不显示错误,但不显示值,我无法弄清楚我做错了什么。
【问题讨论】: