How can I turn on Debug logging for WebServices?

Yellowfin FAQ shared this question 3 months ago
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?

Comments (1)

photo
1

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:

#Webservice debug logging
log4j.logger.org.apache.axis.transport.http.HTTPSender=DEBUG
Once added, your log4j.properties will look similar to the following:

70c84afead394c875df2aafadb4fa16d


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)

set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true
Once added it will look similar to the following:

8482dc5a34498e08f24919db3f4607e1

For Linux, add the following to your catalina.sh file (found in /appserver/bin in your Yellowfin install directory)


JAVA_OPTS="$JAVA_OPTS -Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true"
Once added it will look similar to the following:

7d427fe10e2c6011f7efe407df148854

The resulting logging ends up going to the stdout log.