M_McDonaldSuper Contributor15 years agoRewriting request in Mock Service OnRequest scriptHi - I have the following code in the OnRequest script of a Mock Service to change the request to SOAP: def req = mockRequest def content = req.getRequestContent() log.info "onRequest reque...Show More
M_McDonaldSuper Contributor15 years agoLooks like I can set the Response to anything I want, so it appears to be working now.Thanks.
Related ContentDelete with Request Body / PayloadConvert curl request to SoapUI RequestOnRequest script causes mock service to fail with 500 Internal Server ErrorRequestsPOST request return 400 Bad request
Recent DiscussionsHow to hit update service multiple time with different data set.How do I prevent a file path from being altered when being parsed by JsonSlurper in Groovy Script?SolvedDarshan Hiranandani : Exploring ReadyAPI Integration with Azure GitMultipart requests getting blocked by the Azure WAF 200003Parameterising JDBC Connection Settings..Can you do it?