Description
Unable to match a simple Soap body with x-mock-match-request-body
.
To Reproduce
Steps to reproduce the behavior:
- Create an example for a mock server with any url, any http verb and any response
- e.g.
POST {{url}}/test
with the response:
- e.g.
{
"test":"test"
}
- Add the following request body in the example:
<soap:Envelope>
</soap:Envelope>
- Create a request pointed at the example url with the same body as the example body
- Send the request
- Add the header
x-mock-match-request-body
and give the valuetrue
- Send the request
Expected behavior
Step 4 is expected to return the example response as the body is not matched and the http verb and url path is correct - this works as expected
Step 6 is expected to return the example response as the body is the same as specified in the example and the http verb and url path is correct - this does NOT work as expected
Screenshots
Mock example: Mock example headers and response:
Request with body matching: Headers and response:
Headers and response without body matching:
App Type [Native App]
Postman Version [7.24.0]
OS: [Windows 10 Enterprise]
I am able to match a JSON-body without issue. Has anyone experienced this when using SOAP?