Well.
I spent some time on API... and found an interesting class which did the
rest of my job easy....
org.apache.cxf.io.CacheAndWriteOutputStream

Thanks evrybody!!!


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 
> 

-- 
View this message in context: 
http://www.nabble.com/help-needed-to-log-SOAP-Request-%28using-Out-Interceptor%29-tp19275193p19276450.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to