Forum Discussion
2 Replies
Sort By
- SmartBear_SuppoSmartBear Alumni (Retired)Hello,
There's no easy (or documented) way of doing this. You can set up a MockService to server static content, and you can manipulate the request and response using the OnRequest and AfterRequest scripts.
Regards,
Dain
eviware.com - M_McDonaldSuper ContributorI have been able to setup Mock Services this way for GET requests, but POST requests always want a SOAP envelope.
I have also tried creating a dummy SOAP service, then modifying the mockRequest.requestContent in OnRequest script of a Mock Service to wrap it in the appropriate envelope, but it seems that the changed requestContent is not passed on as I always get the "missing/invalid SOAP envelope" error.