You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by PriyaRamadass <pr...@gmail.com> on 2010/11/30 09:45:28 UTC

Soap Message from CXF

Hi, I am a newbie to CXF.
I am using CXF to generate my clients from WCF service. 
I have a requirement in the project. This is to get the soap message for any
operation that is being invoked from cxf to WCF. I don't want to complete
the operation. Rather I am interested in the soap message that gets
generated. 

I could see Interceptors can help in logging the soap message. But I am not
sure how do I get it work . 
It will be of great help if some one can get me the way to do it.

Thanks & Regards,
Priya.R
-- 
View this message in context: http://cxf.547215.n5.nabble.com/Soap-Message-from-CXF-tp3285752p3285752.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Soap Message from CXF

Posted by devkatiyar <de...@gmail.com>.
Hi , 
you can use Logging Interceptor from CXF 

Ex. code 

<bean id="logInbound"
class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
<bean id="logOutbound"
class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>



<jaxws:endpoint 
	  id="helloWorld" 
	  implementor="demo.spring.HelloWorldImpl" 
	  address="/HelloWorld" >
	  <jaxws:inInterceptors> <ref  bean  ="logInbound"/> 
</jaxws:inInterceptors>
	  <jaxws:outInterceptors><ref bean="logOutbound"/></jaxws:outInterceptors>
	  </jaxws:endpoint>


This work fine ..


Thanks ..
-- 
View this message in context: http://cxf.547215.n5.nabble.com/Soap-Message-from-CXF-tp3285752p3287126.html
Sent from the cxf-user mailing list archive at Nabble.com.