https://linen.dev logo
#help
Title
# help
m

Monideep Roychowdhury

07/25/2023, 8:32 PM
Hi Team, I have a specific requirement where I am proxying some requests to another server but before that I want to change some of the values in the request xml body. I cant find examples to do that. Can someone help with some code examples? I use json mappings for all my wiremock needs and run a standalone server
t

Tom

07/26/2023, 7:29 AM
Hi @Monideep Roychowdhury you would need to write a
StubRequestFilter
implementation and register it as an extension in order to do this. Take a look at https://wiremock.org/3.x/docs/extending-wiremock/ for details
m

Monideep Roychowdhury

07/26/2023, 1:08 PM
Thank you Tom... I will work on it
Is there a way to add the stubRequestFilter to one mapping only