On Tue September 22 2009 2:20:53 pm Jim Talbut wrote: > Jim Talbut wrote: > > How can I capture (to log to a database) the RESPONSE_CODE and > > PROTOCOL_HEADERS of a response message? > > I'm working with a modified version of the LoggingOutInterceptor, > > which captures the body but not the headers. > > Are these values only available at certain phases of the outbound > processing?
Probably. It may not set a fault code until it knows it's a fault, etc... > Is there a list of what is available when somewhere? I generally just look at the source: http://svn.apache.org/repos/asf/cxf/trunk/rt/core/src/main/java/org/apache/cxf/phase/PhaseManagerImpl.java > > Also, how can I get a correlation ID to tie together a message on the > > inbound and outbound interceptors? > > I was hoping the message.getId() would provide something, but it > > doesn't seem to (even if I set it in the inbound interceptor). In general, you can call message.getExchange() which contains the exchange. It holds onto the in and out message so they are already correlated. message.getExchange().getInMessage() probably is what you want. -- Daniel Kulp [email protected] http://www.dankulp.com/blog
