Question
Pegasystems Inc.
US
Last activity: 20 Jul 2016 15:54 EDT
Log SOAP calls
Hi,
How can I turn on logging for SOAP calls both requests to and responses from Pega, with option to log all calls or only errors/exceptions?
Any DASS settings?
Env: Pega 7.2, Decision Strategy Manager 7.2
Thanks
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
PEG
IN
You can turn the debug loggers to below class to get request and response information.
Rule_Obj_Activity.InvokeAxis2.Rule_Connect_SOAP.Action
Pegasystems Inc.
US
Thanks Gangababu. Where and how do I turn on off the debug loggers (This would be my first time)?
PEG
PL
For short duration you could use debug logger but that will get reset once server restart. In case if you wish for permanent solution, you could use prlogging.xml for customized logging.
Pegasystems Inc.
US
This video should explain how to enable the debug loggers: https://community.pega.com/video-library/support-guide-how-enable-pega-debug-logs
Pegasystems Inc.
US
Thanks guys for the responses.
The video is great, short, clear and to the point.
PSC rocks !!!
ps: Another place where loggers list is tracked :
Pegasystems Inc.
US
I set the logging level to ALL (did DEBUG too) and still don't see any SOAP messages written to the Pega Log file.
Screenshot of logger attached.
Am I missing anything else?
Pegasystems Inc.
US
Are you attempting to get logs from a SOAP service on Pega, or are you trying to log calls from Pega to SOAP services?
The logger provided in earlier answers is for the "calls from Pega to SOAP services" use case.
Pegasystems Inc.
US
I am attempting to log for SOAP service on Pega, both the requests to Pega SOAP and the response returned from Pega SOAP
Pegasystems Inc.
US
I would also like to point out that the Tracer tool in Pega has a "SOAP Messages" category of "Event types to trace" in the settings.
When this is enabled and the Tracer is running, you will see "SOAP" events in the tracer tool and you may click them to inspect the message data.
Pegasystems Inc.
US
Yep. I am using Tracer from SOAP Service rule for debugging.
The requirement now is to log all requests to Pega SOAP service and responses from Pega SOAP service, so as to help debugging (when the client informs they received incorrect response).
The rule is of type 'Service SOAP'
I added 'com.pega.pegarules.integration.engine.internal.services.soap.SOAPService' to the logger and now the logs have both xml request and response messages!!!
Thanks guys!