jaspal singh
09/21/2023, 4:30 PMLee Turner
09/21/2023, 5:08 PMjaspal singh
09/21/2023, 6:27 PMLee Turner
09/25/2023, 7:36 PMbodyPattern
. I think you have to use the body
element and include all your xml in there.jaspal singh
09/25/2023, 8:14 PMLee Turner
09/25/2023, 8:33 PM{
"request": {
"method": "GET",
"url": "/send-file",
"bodyPatterns": [
{
"matchesXPath": "//SearchCriteria[City/text() = \"Boston\" or Countrycode/text() =\"US\"]"
}
]
},
"response": {
"status": 200,
"headers": {
"Content-Type": "text/xml;charset=UTF-8"
},
"body": "<Abody>"
},
"serveEventListeners": [
{
"name": "webhook",
"parameters": {
"method": "POST",
"url": "<http://host.docker.internal:7070/callback-logger/api/callback>",
"headers": {
"Content-Type": "application/xml"
},
"body": "<callback><payload>Foo</payload></callback>",
"delay": {
"type": "fixed",
"milliseconds": 1000
}
}
}
]
}
jaspal singh
09/25/2023, 9:07 PM