For my server i prefer the following solution.... If you want to log the whole xml payload you can write a in-interceptor which extends StaxInInterceptor. Implement the method handleMessage and set the Phase in the constructor to "RECEIVE". The out interceptor is a little bit more complex because of the stream. Write a out-interceptor which extends AbstractPhaseInterceptor. Set the Phase in the constructor to "PRE_STREAM" and implement the handleMessage method. Use the CacheAndWriteOutputStream and register a callback where you handle the stream in the "onClose" method.
SaravananRamamoorthy wrote: > > Dear All, > > In my cxf application, I want to log the Inbound and outbound xml payload. > I am using log4j and I do not use any spring stuff. > How can I do this using java code to log this feature. > Please provide some sample code to do this. > > Regards > Saravanan Ramamoorthy > > -- View this message in context: http://old.nabble.com/Logging-Inbound-and-outbound-message-in-cxf-tp28093808p28094850.html Sent from the cxf-user mailing list archive at Nabble.com.
