Forum Discussion

apoorva's avatar
apoorva
Occasional Contributor
16 years ago

code to Print SOAP request coming to soapui

Hi All,

I am using source distribution of soapui. I am making request to mock service from outside of the soapui.(Making request from JMeter to soapui).
Now I want to print soap request's content coming to the soapui.

I guess WsdlMockRunner.java class will help me to write some code.
I tried out following code in dispatchMockRequest() of WsdlMockRunner.java

String requestData = mockRequest.getRequestContent();
System.out.println("SOAP REQUEST "+requestData);

but its not working...

Can anyone please provide me code to do that.

Thanks,
Jim