CXF logging via interceptors

In case you need to see what you’re passing to a web service via CXF, add the following in you web client XML (i.e. cucumber.xml):

<property name=”inInterceptors”>
<util:list>
<bean class=”org.apache.cxf.interceptor.LoggingInInterceptor”/>
</util:list>
</property>
<property name=”outInterceptors”>
<util:list>
<bean class=”org.apache.cxf.interceptor.LoggingOutInterceptor”/>
</util:list>
</property>

Leave a Reply

Your email address will not be published. Required fields are marked *