Log incoming request of SoapUI mock service

if you ever happen to create SOAP ui mock serice I am sure you had requirment to log certain parameters or entire requiest to see whats being posted to your mock service. it is very easy. this is how you can do that.

double click on your service (from left hand panel)

Screen Shot 2016-03-21 at 11.10.29 PM


select onRequest tab

Screen Shot 2016-03-21 at 11.11.22 PM

add below script

log.info (mockRequest.getRequestContent());

Restart your service.

Now you can see logs are being printed with your request body.

Screen Shot 2016-03-21 at 11.17.42 PM

if you don’t know how you can create mock service¬†using soapUI you can refer this video

Share this on your world...Share on Facebook
Tweet about this on Twitter
Share on LinkedIn
Email this to someone
Print this page

Leave a Reply