Glen,

Thanks! That worked!

MyService service = new MyService();
MyServicePortType portType = service.getMyServicePort();
Client client = ClientProxy.getClient(portType);
client.getInInterceptors().add(new LoggingInInterceptor());
client.getOutInterceptors().add(new LoggingOutInterceptor());

Thanks again,

Gary


Glen Mazza wrote:
http://cwiki.apache.org/CXF20DOC/debugging.html -- the fourth shaded block
from the top?

HTH,
Glen


Gary Weaver wrote:
Hello again,

In Axis2 I was able to enable logging of the SOAP request and response along with the headers using the following in log4j.properties:

log4j.logger.httpclient.wire.content=DEBUG #SOAP Request and Response
log4j.logger.httpclient.wire.header=DEBUG #HTTP Headers

However, in CXF, when I turn on full debug logging in log4j.properties
via:

log4j.rootCategory=DEBUG, ...

I did a search through the log produced after calling the service and getting a response, but it appeared that the request and response were not logged.

I then read at the following page how to configure the logging interceptors using Spring:
http://cwiki.apache.org/CXF20DOC/configuration.html

However, the examples were all using Spring, which is fine, but for this simple test client, I was just using Java. Should I just switch to using the Spring config to configure CXF to enable logging, or is there an easy enough way to turn on logging either via log4j.properties (even though I don't think there is, since I had it on full-force) or via Java code?

Thanks in advance,

Gary

--
Gary Weaver
Internet Framework Services
Office of Information Technology
Duke University






--
Gary Weaver
Internet Framework Services
Office of Information Technology
Duke University

Reply via email to