Join Slack
Powered by
This message was deleted.
# help
s
Slackbot
01/15/2024, 9:29 AM
This message was deleted.
test.xml
t
Tom
01/15/2024, 10:22 AM
WireMock doesn’t support XML as a way of describing stubs. That has to be JSON. However, you can return XML in your HTTP responses, either inlined in the
body
field under the response, or in a separate file under the
__files
directory referenced by
bodyFileName
l
Leszek Izdebski
01/15/2024, 10:24 AM
Something like this ? { "request": { "method": "GET", "url": "/your-api-endpoint" }, "response": { "status": 200, "headers": { "Content-Type": "application/xml" }, "body": "<your-xml-response>...</your-xml-response>" } }
👍 1
216
Views
Open in Slack
Previous
Next