I would like to be able to stub a SOAP Service

Not applicable

Hi, I would like to be able to stub a SOAP based service and return potentially a number of different XML responses based on the request payload, what is the easiest way to store the XML responses and how best to set the response content.

1 2 702
2 REPLIES 2

Not applicable

Hey @Andrew Ryan I can think of 2 options :

1 - Use a node.js target to stub the XML responses. In your node.js target you can conditionally return the SOAP response based on request payload. If you have XML response as files, you can upload them as resources and read in your node.js code.

2 - Use the combination of Assign Message & Extract Variable policies to generate the response based on the request content. However with more combinations, managing policies will be cumbersome.

Hope this helps!