Shikhar Rawat
05/17/2024, 4:58 AM[ERROR] 1:3: could not find helper: 'xpath'
{{{xpath request.body '/request/outter/inner/@id'}}}
The xml:
<?xml version="1.0"?>
<request>
<outter>
<inner id="2343"> stuff</inner>
</outter>
</request>
The mapping -
{
"request": {
"method": "POST",
"urlPattern": "/dummy122",
"headers": {
"Content-Type": {
"equalTo": "application/xml"
}
}
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/xml"
},
"transformers": [
"response-template"
],
"body": "{{{xpath request.body '/request/outter/inner/@id'}}}"
}
}
I've searched a lot , i am using version 3.5.3
. Is there any configuration that i need to enable to use xpath?Lee Turner
05/17/2024, 5:36 AMShikhar Rawat
05/17/2024, 6:00 AM