Question

How can I implement log SOAP/REST request, response, service status & response time in DB?

I have a requirement to log SOAP/REST request, response, service status and response time in PRPC database for all SOAP/REST service. My application is consuming 50+ SOAP and REST service and we have to capture the details in database, is there any way to make the this change in activity InvokeAxis2 for SOAP & pyinvokerestconnector for REST or any better place. We don't want to change for all 50 services individually.

***Edited by Moderator Marissa to update platform capability tags; edited title for length****

Comments

Keep up to date on this post and subscribe to comments

November 18, 2018 - 4:18pm

Hi,

You can create common utility activity which will have below steps with parameters like below.

Parameters:- 

Request DT

ResponseDT

ServiceName 

ServicePagename

Activity Steps:- 

1. Create new parameterpage.

2. Run the request DT to form request data.

3. You can commit your requestdata.

4. Call Connect-Soap/ Connect-Rest method.

5. Run the response Dt to map the data from service page to application page.

6. You can save the response .

Thanks,

Deva.

November 18, 2018 - 5:03pm
Response to Deva_Prathapaneni

Thanks for your reply, At present I am following same strategy and there is some drawback in this strategy due to that I want to move from this approach and want to implement it at connector level. Following is the drawback:-

1. For old service I have to make the change in many places.

2. There is always chance by developer to miss to call this activity for new integration of service, or at the time of service migration.

December 2, 2018 - 12:56am

I am still waiting for any new thoughts to implement this requirement.

February 19, 2019 - 12:16pm
Response to RaviR257

If you are ok to override OOTB activities for SOAP like InvokeAxis2/InvokeAxis2Signed you can get access to parameters requestPack,
responsePack which will have request Data, response Data respectively. You can use them as you want.

HTTP rules will also initializes this parameters requestPack,responsePack.

.For Rest Rule-Connect-Rest!Invoke you can get access to parameters like pyRequestHeaders, pyRequestData

Thanks

Chiranjeevi