Re: Log the Request and Response object from eclipse generated client

2014-01-17 Thread Jeffrey Born
Well after a few days struggling with this I'm back to trying to capture the request object via the interceptor. I've managed to add the interceptor to my code base and print the output stream. I'm not knowledgeable with either Steams or Interceptors and would like to get a few questions

Re: Log the Request and Response object from eclipse generated client

2014-01-17 Thread José Manuel Prieto
Hi Jeffrey, maybe this can help you: http://cxf.apache.org/javadoc/latest/org/apache/cxf/management/persistence/class-use/ExchangeDataDAO.html CXf implements some classes and interfaces to save information into DDBB. I write in my blog (spanish) about this:

Log the Request and Response object from eclipse generated client

2014-01-14 Thread Jeffrey Born
Hi all, I am having problems figuring out how to log the Request and Response objects after successfully calling a .NET Web Service. I created the client using Eclipse Kepler that generated all the skeleton code for me. I'm using the 2.7.8 version of CXF and Java jdk1.7.0_45. I've read a lot

Re: Log the Request and Response object from eclipse generated client

2014-01-14 Thread José Manuel Prieto
http://cxf.apache.org/docs/debugging-and-logging.html#DebuggingandLogging-LoggingMessages Client client = ClientProxy.getClient(port); client.getInInterceptors().add(new LoggingInInterceptor()); client.getOutInterceptors().add(new LoggingOutInterceptor()) In spring application context:

Re: Log the Request and Response object from eclipse generated client

2014-01-14 Thread Jeffrey Born
Ah, I missed that I should be adding the Client object via the getClient(port) method. Thanks much for nudging me in the correct direction. On Tue, Jan 14, 2014 at 12:35 PM, José Manuel Prieto joseman...@prietopalacios.net wrote: