Dhruvraj Mishra
05/17/2024, 7:23 AMDhruvraj Mishra
05/17/2024, 7:26 AMLee Turner
05/17/2024, 7:33 AMDhruvraj Mishra
05/17/2024, 8:12 AMDhruvraj Mishra
05/21/2024, 7:56 AMLee Turner
05/21/2024, 7:58 AMDhruvraj Mishra
05/21/2024, 8:50 AMLee Turner
05/21/2024, 8:52 AMLee Turner
05/21/2024, 9:55 AMxPath
helper along with the jsonPath
helper. Is there a reason why the XML has to be embedded in json rather than just passing the XML directly?Dhruvraj Mishra
05/21/2024, 10:39 AMDhruvraj Mishra
05/21/2024, 10:39 AMDhruvraj Mishra
05/21/2024, 10:40 AMLee Turner
05/21/2024, 10:40 AMDhruvraj Mishra
05/21/2024, 10:46 AMDhruvraj Mishra
05/21/2024, 3:01 PMLee Turner
05/21/2024, 4:27 PM{
"request": {
"urlPathPattern": "/wiremock/request",
"method": "POST",
"bodyPatterns": [
{
"matchesJsonPath": {
"expression": "$..xmlData",
"contains": "Sender>sd"
}
}
]
},
"response": {
"status": 200,
"bodyFileName": "folder-name/responseFlow.xml",
"headers": {
"Content-Type": "application/soap+xml; charset=utf-8"
}
},
"serveEventListeners": [
{
"name": "webhook",
"parameters": {
"method": "POST",
"url": "<https://yourcallbacksite.com>",
"headers": {
"Content-Type": "application/json"
},
"body": "{\n\"xml\": "xmlData": "<EDoc> <Msg ID=\"Edoc\"> <Header> <Sender>sd</Sender> <Receiver>re</Receiver> <Priority>p</Priority> <MsgIdW>{{xPath (jsonPath originalRequest.body '$.xmlData') '/EDoc/Msg/Header/MsgId/text()'}}</MsgIdW> <Date>2024-05-08T14:56:41</Date> <System>LITAS-MIG</System> </Header> </Msg> </EDoc>"\n}"
}
}
]
}
Dhruvraj Mishra
05/22/2024, 3:53 AMDhruvraj Mishra
06/07/2024, 1:56 PMDhruvraj Mishra
06/07/2024, 1:56 PMLee Turner
06/07/2024, 1:57 PM