How to virtualize API using xml request and response
- 4 years ago
The Parameter dispatch setting is available for REST virtual services only. So, unfortunately we can't use this approach here.
What we could do is use a script to implement our logic to dispatch the results in a groovy script. Something like a switch statement could help you out here. This is a good resource if you're not familiar with scripting: https://www.tutorialspoint.com/groovy/groovy_switch_statement.htm
I would also advise downloading the SOAP sample project as it contains a SOAP virtual API that uses a script to dispatch responses. You can download this under the sample projects under your dashboard tab. If you're having trouble finding this project you can click here for more instructions on where to find it. https://support.smartbear.com/readyapi/docs/functional/tutorial/samples.html