How to access soapUI request xml from mockResponse script
I need to access my request in mock service script which has log, context, requestContext, mockRequest and mockResponse variables that can be used. Please let me know how can i access the request.
Note: I cannot create separate test suite or test case for this and hence i need to access request xml in mock service script only.
I am able to get the request with below in dispatch script
def requestBody = mockRequest.getRequestContent()
log.info "Request body: " + requestBody