Hi,
I am new to wiremock. When i tried xml body matching in standalone wiremock- java -jar wiremock-1.57-standalone.jar --port 8090 --verbose and hit the url http://localhost:8090/with/xmlBody
I am getting below error in console:
2015-12-11 15:26:22.395 URL /with/xmlBody is match, but method GET is not
2015-12-11 15:26:22.396 No mapping found matching URL /with/xmlBody
And on page:
HTTP ERROR 404
Problem accessing /__files/with/xmlBody. Reason: NOT_FOUND
Here is my json:
{
"request": {
"method": "POST",
"urlPattern": "/with/xmlBody",
"bodyPatterns" : [
{ "equalToXml" : "<IsEmailExists> <emailID>te...@mail.com</emailID> </IsEmailExists>" }
]
},
"response": {
"status": 200,
"body" : "<IsEmailExistsResponse><IsEmailExistsResult>false</IsEmailExistsResult></IsEmailExistsResponse>"
}
}
Hi Tom,
"bodyPatterns" : [
{ "equalToXml" : "<IsEmailExists> <emailID>te...@mail.com</emailID> </IsEmailExists>" }
]