Logging for CXF based Web Services
search cancel

Logging for CXF based Web Services

book

Article ID: 266012

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

Since 17.3 RU19, the new CXF based Web Services have been added for CA Service Desk Manager (SDM).

Is there a means to enable additional logging for CXF based web services?

Environment

CA Service Desk Manager 17.3 RU19 or higher

All Supported Operating Systems

Resolution

1.  On the SDM server where CXF Web Services are deployed, open the following file for editing with a text editor, file cxf-beans.xml located in NX_ROOT\bopcfg\www\CATALINA_BASE\webapps\cxf\WEB-INF\

2.  Search for the tag "jaxws:features"

3. There will be the following content located:

        <jaxws:features>
            <!--bean class="org.apache.cxf.feature.LoggingFeature" /-->
        </jaxws:features>

4. Remove the above comment so the entry reads as:

        <jaxws:features>
            <bean class="org.apache.cxf.feature.LoggingFeature" />
        </jaxws:features>

5.  Save the changes to the file

5.  Recycle the main SDM Tomcat process or recycle the SDM services

Additional logging will be written to the pdm_tomcat.log under NX_ROOT/log

Additional Information

The above logging should only be activated for purposes of debug and tracing as this logging is highly resource intensive.

See also:

KB Article 137240:  Discusses SOAP logging/tracing, primarily for Axis based SOAP Web Services

KB Article 15273:  Milestone based SOAP logging/tracing, applicable for Axis and CXF SOAP Web Services