doshi_milan wrote:
I am using CXF within Servicemix.
I want to know how would I be able to intercept XML request / response
within my code ? I have  created a user defined interceptor which extends
from  org.apache.cxf.interceptor.LoggingInInterceptor and similarly another
use defined Intercepor which extends from
org.apache.cxf.interceptor.LoggingOutInterceptor. I have this in the
xbean.xml file as follows :


I can't see your xbean.xml content here, :-)
                
                
                        
                
                
                
I am able to override the handleMessage method. I know that
LoggingInInterceptor can directly log the XML but what I want is to retrieve
certain values etc within the interceptor. Thus for now, I want to see how
can I retrieve the ENTIRE message within the interceptor. This should be
very easy as the logging method probably does it but it is not available to
us. I failed to get any sample or documentation. I do not even know if LoggingInInterceptor /LoggingOutInterceptor are thr right interceptors to be
used.
The LoggingInInterceptor should be what you want, you mean you can't find the source code of LoggingIn/OutInterceptor? They are in cxf code base, and you can find those from
http://svn.apache.org/repos/asf/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/
Any help will be much appreciated.

Thanks!
Milan Doshi

Reply via email to