Ruber
9 years agoOccasional Visitor
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") request.setRequestContent(mockRequest.requestContent) 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:
com.eviware.soapui.impl.wsdl.mock.DispatchException:
java.lang.Exception: No signature of method: com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest.getOperation() is applicable for argument types: () values: []