Forum Discussion

Ruber's avatar
Occasional Visitor
8 years ago

How to redirect a request to another service?

When a mock request comes in, I want to redirect it to a windows service running on that machine. Is that possible? 

Script so far:


def request = mockOperation.getOperation().addNewRequest("MyWindowsService")
def submit = request.submit(new com.eviware.soapui.impl.wsdl.WsdlSubmitContext( request ), false )

def response = submit.getResponse()
requestContext.responseMessage = response.getContentAsString()

I get the exception:

java.lang.Exception: No signature of method: com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest.getOperation() is applicable for argument types: () values: []


No RepliesBe the first to reply