Forum Discussion
randomnet
12 years agoNew Contributor
Well, I solved the problem by creating a new request instead of using an existing one and waiting for the response.
} else {
// Server response
def request = mockOperation.getOperation().addNewRequest("ServerRequest")
request.setRequestContent(mockRequest.requestContent)
def submit = request.submit( new com.eviware.soapui.impl.wsdl.WsdlSubmitContext( request ), false )
// wait for the response
def response = submit.getResponse();
requestContext.responseMessage = response.getContentAsString();
return "ServerResponse"
}