I am trying to match request body in my wiremock.net mock service and send specific response back, only when 'code' tag contains value of '01.23.45.678.910'.
here is the xml:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope"
xmlns:v1="some-url"
xmlns:com="some-url">
<soapenv:Body>
<v1:TestRequest>
<v1:RequestParameters>
<com:requestorDN>tst</com:requestorDN>
<com:requestID>ece8c518-669e-4a17-840b-62ff4c047f04</com:requestID>
<com:useSoapFaults>1</com:useSoapFaults>
</v1:RequestParameters>
<v1:code>01.23.45.678.910</v1:code>
</v1:TestRequest>
</soapenv:Body>
</soapenv:Envelope>
and here is the query, which has no effect:
/*:Envelope/*:Body/*:TestRequest/*:code[.='01.23.45.678.910']
how can I do this matching correctly?