[jbossws-cxf-users] [JBoss Web Services CXF] - Client SOAP Logging with jbossws-cxf-3.1.2.GA and JBossAS 5.

McHeely do-not-reply at jboss.com
Thu Sep 10 13:23:27 EDT 2009


I'm trying to enable SOAP client message logging on an application running on JBossAS 5.1.0.GA with jbossws-cxf-3.1.2.GA installed. 

There are instructions at http://www.jboss.org/community/wiki/JBossWS-StackCXFUserGuide, but they discuss a file in jbossws-cxf.sar, which doesn't seem to be present anywhere in my app server. 

Within the META-INF folder of my project's ear I have the following jbossws-cxf.xml file:


  | <beans
  |   xmlns='http://www.springframework.org/schema/beans'
  |   xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  |   xmlns:beans='http://www.springframework.org/schema/beans'
  |   xmlns:jaxws='http://cxf.apache.org/jaxws'
  |   xmlns:cxf="http://cxf.apache.org/core"
  |   xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
  |   xsi:schemaLocation='http://www.springframework.org/schema/beans
  |   http://www.springframework.org/schema/beans/spring-beans.xsd
  |   http://cxf.apache.org/jaxws
  |   http://cxf.apache.org/schemas/jaxws.xsd'>
  |   
  | 	<bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
  |     <bean id="logOutbound" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
  | 	
  |     <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl">
  |         <property name="inInterceptors">
  |             <list>
  |                 <ref bean="logInbound"/>
  |             </list>
  |         </property>
  |         <property name="outInterceptors">
  |             <list>
  |                 <ref bean="logOutbound"/>
  |             </list>
  |         </property>
  |         <property name="outFaultInterceptors">
  |             <list>
  |                 <ref bean="logOutbound"/>
  |             </list>
  |         </property>
  |     </bean> 
  | 
  | 
  | 	<!-- one or more jaxws:endpoint EJB3 declarations -->
  | 	<jaxws:endpoint
  | 	  id='CostingService'
  | 	  address='http://127.0.0.1:8080/Coster/CostingService'
  | 	  implementor='com.foo.zcg.webservice.CostingService'>
  | 	  <jaxws:handlers >
  | 	    <bean class='org.jboss.seam.webservice.SOAPRequestHandler'/>
  | 	  </jaxws:handlers >
  | 	</jaxws:endpoint>
  | 
  | </beans>
  | 

I'm still not seeing any output in the server logs. I have the logging level for "org.apache.cxf" and for "org.jboss.ws.core.MessageTrace" set to TRACE. 

Is there something I'm missing here? Can anybody enlighten me on how I can log messages for client requests from this app? 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254528#4254528

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254528


More information about the jbossws-cxf-users mailing list