mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Is transforming contents of XML file supported.? #233
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dileepsam on GitHub (Dec 4, 2019).
Originally assigned to: @StefH on GitHub.
Hi,
I am trying to use this as a standalone app to mock the server,
when configured an XML file as a response,
how to transform the contents of the file.?
Thanks,
@StefH commented on GitHub (Dec 4, 2019):
An XML response is just plain text, so you can transform all things you like.
@dileepsam commented on GitHub (Dec 4, 2019):
I have configured response like below
Success.xml contains Handlebar transformation which does not seem to work.
Am I missing something.?
@StefH commented on GitHub (Dec 5, 2019):
Currently the transformation is only done for the filename, not yet for the file contents.
I'll take a look.
@StefH commented on GitHub (Dec 5, 2019):
A preview NuGet is available on MyGet:
WireMock.Net.1.0.38-ci-12271.nupkgYou need to provide an extra property (
"UseTransformerForBodyAsFile": true)in the mapping:@dileepsam commented on GitHub (Dec 6, 2019):
Thank you, Stef.
It works.
@StefH commented on GitHub (Dec 6, 2019):
https://github.com/WireMock-Net/WireMock.Net/pull/388