xmlsoapmountebank

Is it possible to alter the request body in mountebank before it gets processed ? If yes, then how can we do that?


I am working on service virtualization using mountebank. I am receiving the request from test application in mountebank which contains soap xml as a request body. In that soap xml, there is a tag wsa:Tohttp://[ip]:[port]/</wsa:To> but I need to change this value with target application endpoint before it gets processed by mountebank. Please help how can I achieve this ?


Solution

  • Depends what you're trying to do. It certainly is possible to do advanced parsing using the inject predicate. Or does your processing involve using that part of the request and adjusting the response based on some transformation? If so, maybe use the decorate behavior.