jamescollett
7 years agoContributor
Using scripting to choose a response based on the request
I have a mock service (SOAP XML) with a number of canned responses defined. The request that comes in includes an ID field. I should like to choose which response to send back to my client based on the value of the ID.
I appreciate that I need to choose "Dispatch: SCRIPT" in the Operation dialog panel but I am stumped after that. I have in the past successfully defined a sequence for sending the responses which was different from the default order in which they are listed, although that was a long time ago and that was as sophisticated as it got.
Can someone please help?
--
SoapUI (free edition) 5.2.1