Forum Discussion
cortez
13 years agoOccasional Contributor
redfish4ktc2 wrote: Could you tell us what the groovy scripts you mentionned are supposed to to?
The scripts essentially mock an asynchronous API which accords to this model.
For example, here is the portion of the script that mocks the initial POST of data:
if ( mockRequest.method == "POST" )
{
mockResponse.setHeader("Location","/foo/queue/qw718gxa-e951-4072-jddf-czd2a8904qc1")
mockResponse.setHeader("Content-Type","application/json")
mockResponse.setStatus(202, "Accepted")
mockResponse.getWriter().print("{\n \"uuid\":\"qw718gxa-e951-4072-jddf-czd2a8904qc1\"\n}")
return new com.eviware.soapui.impl.wsdl.mock.WsdlMockResult(mockRequest)
}
redfish4ktc2 wrote: About the differences between running from the gui and from the war:
- the war may not contains all lib that are available in the gui
- the war has a additional layer that sometimes causes problems (have a look on this forum). For instance, I know there are some issue with the 4.6.1 version (see http://forum.soapui.org/viewtopic.php?f=13&t=21976)
I got the same result with both 4.6.0 and 4.6.1
redfish4ktc2 wrote: do you think all the lines you see could be the same behaviour as in this comment: http://forum.soapui.org/viewtopic.php?f ... 976#p49957?
Yes I saw that post. I'd say it was. It looks very similar.