Forum Discussion
redfish4ktc2
11 years agoSuper Contributor
hi, real rest mock services are only available with soapui 5+
previous soapui version can support rest mocking by using grovvy scripts, see http://www.soapui.org/Service-Mocking/c ... m-response
extract
previous soapui version can support rest mocking by using grovvy scripts, see http://www.soapui.org/Service-Mocking/c ... m-response
extract
This is currently the only way to mock a REST or more complex HTTP service with soapUI; the OnRequest script on the MockService level gives you direct access to the underlying HttpRequest and HttpResponse objects allowing you to create whatever response you would like to. All you need to be sure of is that the script returns a MockResult object which tells soapUI to stop processing the request