Forum Discussion
4 Replies
- bmgrinerFrequent ContributorMay I ask when or if this will be supported in the near future? Is it even in the pipeline?
I just spent a few hours trying to use the work around by setting the docroot and creating a onRequest script and sending static content back in the response. This was going well until I realized that it was only handling GET requests. The POST requests don't even go into the onRequest script. I put a log.info in there and when I do a POST, it does not write out to the script log file nor does it write any error out to the error log.
Currently, all I need to be able to do is send back static data for any HTTP methods. It would be nice in the future to be able to dynamically generate the responses for rest calls, but getting the above to work would be a great start. - Hi,
this is definitely in the pipeline, but you should be able to handle POST requests with the onRequest handler.. did you follow the guide at http://www.soapui.org/Service-Mocking/m ... vices.html ?
regards,
/Ole
eviware.com - bmgrinerFrequent ContributorI did actually follow that guide. I'm being told in another post to try the nightly build...so I will give that a shot.
- can you please post the sample script to mock the static response to the REST GET request