How can I turn on Debug logging for WebServices?
Answered
When integrating YF it can be difficult to understand why certain calls are failing.
Is there a way to actually trace the calls being made and results returned so we can identify issues sooner?
To enable SOAP/WebServices debug logging, please add the following to your log4j.properties file found in your Yellowfin install directory under /appserver/webapps/ROOT/WEB-INF:
Once added, your log4j.properties will look similar to the following:This will additional logging capability will add the webservice DEBUG logs to your Yellowfin.log files and includes the full SOAP Envelope passed and returned by the Webservice call.
If you are calling the Legacy Webservices (LegacyAdminstrationService) you can log the soap request/response by adding the following JVM Option
-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true
For Windows, add the following to your catalina.bat file (found in /appserver/bin in your Yellowfin install directory)
Once added it will look similar to the following:For Linux, add the following to your catalina.sh file (found in /appserver/bin in your Yellowfin install directory)
Once added it will look similar to the following:
The resulting logging ends up going to the stdout log.
To enable SOAP/WebServices debug logging, please add the following to your log4j.properties file found in your Yellowfin install directory under /appserver/webapps/ROOT/WEB-INF:
Once added, your log4j.properties will look similar to the following:This will additional logging capability will add the webservice DEBUG logs to your Yellowfin.log files and includes the full SOAP Envelope passed and returned by the Webservice call.
If you are calling the Legacy Webservices (LegacyAdminstrationService) you can log the soap request/response by adding the following JVM Option
-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true
For Windows, add the following to your catalina.bat file (found in /appserver/bin in your Yellowfin install directory)
Once added it will look similar to the following:For Linux, add the following to your catalina.sh file (found in /appserver/bin in your Yellowfin install directory)
Once added it will look similar to the following:
The resulting logging ends up going to the stdout log.
Replies have been locked on this page!