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****
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.
Posted: 3 years ago
Posted: 2 Dec 2018 0:56 EST
Ravi Rajnish (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