Question

Requirement is to Log the entire REST (JSON) requests that come into a Mock REST service in SoapUI

I'd like to be able to log the entire REST (JSON) requests that come into a Mock REST service in SoapUI. I do see them in the Message Log - but only the date/time stamp and the URL is shown - no details (like the actual *JSON contents* of the request) is visible and accessible.That would be a great addition to verify that the incoming requests are indeed formatted as I need them to be. please help.

***Updated by moderator: Lochan to branch reply and create new post***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Branched Post Information: 

Comments

Keep up to date on this post and subscribe to comments

Pega
December 26, 2017 - 5:52am

Hi,

Thanks for posting on PSC.

Request, Response and Headers JSON strings are already available in the tracer.

Whenever OOTB activity Rule-Connect-REST.pyInvokeRESTConnector runs, you can take a look at the parameter page in the clipboard and there you will find properties pyRequestHeaders, pyRequestData, pyResponseHeaders and pyResponseData.

Refer this as well:-https://pdn.pega.com/community/product-support/question/how-convert-json-request-connect-rest-single-string-and-store

Hope it helps in your implementation. Kindly notify as answered if it does.

Regards,

Asif

 

 

December 31, 2017 - 1:16am

Hello Mary,

You can go through this article  .

Thanks,

Arun