doshi_milan
2008-11-12 18:49:01 UTC
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 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.
Any help will be much appreciated.
Thanks!
Milan Doshi
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 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.
Any help will be much appreciated.
Thanks!
Milan Doshi
--
View this message in context: http://www.nabble.com/Retrieving-SOAP-Header-and-SOAP-Body-using-Interceptors-tp20466758p20466758.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/Retrieving-SOAP-Header-and-SOAP-Body-using-Interceptors-tp20466758p20466758.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.