Forum Discussion

KarelHusa's avatar
Champion Level 3
6 years ago

Logging a mock service response

Dear colleagues,

I would like to log requests and responses from within the SoapUI mock service in order to see what has been sent to the mock service and what the mock service responded.


I have created a script and put it into "AfterRequest Script" of the mock service.


I am logging the request by:


and response by:


However, the content of the response is only the response template, before parameter expansion, i.e. contains <id>${=java.util.UUID.randomUUID()}</id> etc.


How can I log the exact response which has been sent out to the service consumer? I went through the SoapUI 5.4.1 API, but was not able to find the way.



2 Replies