As part of our requirement ,we want to capture the connector request and response into a table .We see that when a call is made from the Pega,the actual request is present in the parameter page in parameters "pyRequestHeaders","pyRequestData ,"pyRequestParameters" but we dont see the response captured in any parameter .How do we get the actual response that we are getting .Right now the only way i see we can do is to update the connector activity starting with name Invoke.Would also like to know what Pega recommends.
I see ,pyInvokeRESTConnector use below api function to make external connect call , Is there any parameter to capture actual JSON/XML response format that returns by external system ? . I think,read the value of pyObjName parameter(which holds data source page name) and convert the page into JSON .
I just found the following work around to convert the response page to JSON.
Below approaches may be helpful if payload of all Api's calls needs to be logged in dedicated table . If it's just debugging purpose then define the log level setting as DEBUG for com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector .