My mock scenario is as below.
Scenario: pathMatches('/tokenisationservice/TokenisationWS_1_3') && bodyPath('/Envelope/Body/getToken/GetTokenRequest/enterpriseID') == '1'
url to be mocked- 'http://localhost:8080/tokenisationservice/TokenisationWS_1_3'
Request XML
<soapenv:Envelope blah blah blah>
<soapenv:Header/>
<soapenv:Body>
<tok:getToken>
<GetTokenRequest>
<enterpriseID>1</enterpriseID>
<merchantGroupID>1</merchantGroupID>
<pan>1234567890123456</pan>
</GetTokenRequest>
</tok:getToken>
</soapenv:Body>
</soapenv:Envelope>
Running standalone karate-netty. This gives the below error and not giving the desired response back.
15:53:19.159 [nioEventLoopGroup-3-3] WARN com.intuit.karate - scenario match evaluation failed: javascript evaluation failed: pathMatches('/tokenisationservice/TokenisationWS_1_3') && bodyPath('/Enve lope/Body/getToken/GetTokenRequest/enterpriseID') == '1'