We have a LoggingOutInterceptor that already does this. You could look at the code to see how it does it. http://svn.apache.org/repos/asf/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/LoggingOutInterceptor.java
Dan On Tuesday 02 September 2008 1:55:38 pm CXF-de'per wrote: > I could able to log the Soap Response using my custom Interceptor... when I > try to log the outgoing Soap Request... I got stuck? few details like: > Which Phase to use (like Phase.RECIVE) and any other way? Well the problem > is the outInterceptor have the OutputStream (for Response: InputSteam to > read the data). > > I have worked on handlers (handleRequest(...), handleResponse(...))... but > I am fallling behind to find a way to log the SoapRequest.... > > any quick tips will be heartly appriciated. > > my code: > SoapResponseInterceptor (Works fine to log the Soap Response) > SoapRequestInterceptor(looking for the sol..) > > my cxf.xml > ------------------------------------------------------------------------ > <bean id="logInbound" > class="com.firstbest.pso.amsf.webservice.SoapResponseInterceptor"/> > <bean id="logOutbound" > class="com.firstbest.pso.amsf.webservice.SoapRequestInterceptor"/> > > <cxf:bus> > <cxf:inInterceptors> > <ref bean="logInbound"/> > </cxf:inInterceptors> > <cxf:outInterceptors> > <ref bean="logOutbound"/> > </cxf:outInterceptors> > </cxf:bus> > ------------------------------------------------------------------------- > and the client side code: > > <bean id="amsfClient" class="services.ums.icams.amerisafe.ServicesSoap" > factory-bean="clientFactory" factory-method="create"/> > > <bean id="clientFactory" > class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean"> > <property name="serviceClass" > value="services.ums.icams.amerisafe.ServicesSoap"/> > <property name="address" value="http://...services.asmx?wsdl"/> > </bean> > --------------------------------------------------------------------------- >----- the server side is .Net -- Daniel Kulp [EMAIL PROTECTED] http://www.dankulp.com/blog
