Question
Last activity: 31 Aug 2016 17:02 EDT
How to access the XML payload of a Service request
How to log the XML/JSON payload of a service request.
I see an article about this on PDN https://pdn.pega.com/support-articles/soap-service-request-not-getting-logged-pega-logs
I don't see "'com.pega.pegarules.integration.engine.internal.util.SOAPUtils'" logger in 7.2 version.
Connectors are being run in queue mode so I would like to know how to log the request and response of connector as well.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi,
Try setting DEBUG on the following logger class -
com.pega.pegarules.integration.engine.internal.services.soap.SOAPService
i don't see below logger name as well.plz refer the snapshot posted earlier .
com.pega.pegarules.integration.engine.internal.services.soap.SOAPService
Pegasystems Inc.
US
Does it work for REST service as well ? logger class looks like support SOAP services only.
Pegasystems Inc.
US
Try com.pega.pegarules.integration.engine.internal.services.http.HTTPService for rest service.
=waikei
Unable to log the request and response xml of soap service by setting DEBUG on "com.pega.pegarules.integration.engine.internal.services.soap.SOAPService" ,
However below logger class is logging the request & response xml of soap service.
"com.pega.pegarules.integration.engine.internal.util.SOAPUtils"
" com.pega.pegarules.integration.engine.internal.services.http.HTTPService" is not working for Service REST.
I would like see the same for connectors(SOAP/REST) as well .plz share the logger class name for connectors as well.
Pegasystems Inc.
US
Hi,
The same logger is still available in Pega 7.2.
=waikei
Pegasystems Inc.
IN
could we try java step oLog.infoForced("step page information: "+myStepPage.getXML()); in service activity?
Yes we could get the XML in service activity,But in our system we need to log the details on demand to encounter the issue.
Please share the logger class name for service REST .
I would like see the same for connectors(SOAP/REST) as well .plz share the logger class name for connectors as well
Hi Brahmeshwara,
You can log connect-Rest using Rule_Obj_Activity.pyInvokeRESTConnector.Rule_Connect_REST.Action
Please see this for list for more loggers Compilation of Popular Pega OOTB Classes/Loggers that helps in Troubleshooting Issues
Regards,
Amit
Thanks Amit for response.
Can we see the request & response attributes in pyInvokeRESTConnector activity .
Yes these are logged when you set the logging mode to "DEBUG"
thanks for your confirmation. plz share the logger class name for Service-REST
Pegasystems Inc.
US
com.pega.pegarules.integration.engine.internal.services.http.HTTPService
Pegasystems Inc.
HK
Isn't the Request xml has been parsed when reaching the Service Activity?
Can you tell me how you did it?Thanks.
Pegasystems Inc.
HK
Isn't the Request xml has been parsed when reaching the Service Activity? Thanks.