Pages

September 21, 2014

JAX-WS - CXF Log Request/Response SOAP Messages Logback


apache cxf logo
CXF uses Java SE Logging for both client- and server-side logging of SOAP requests and responses. Logging is activated by use of separate in/out interceptors that can be attached to the requester and/or provider as required. These interceptors can be specified either programmatically (via Java code and/or annotations) or via use of configuration files.

The following tutorial shows how to configure CXF logging interceptors using Logback for the contract first Hello World web service example from a previous post.