Description
Unable to match a simple Soap body with x-mock-match-request-body
.
To Reproduce
Steps to reproduce the behavior:
POST {{url}}/test
with the response: {
"test":"test"
}
<soap:Envelope>
</soap:Envelope>
x-mock-match-request-body
and give the value true
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?
I added the header Content-type: Application/xml
to both the example and the request and it worked.