I have a cxf.xml that contains

  <cxf:bus>
    <cxf:features>
      <cxf:logging/>
    </cxf:features>
  </cxf:bus>

  <http:conduit name="*.http-conduit">
<http:client ProxyServer="${proxyHost}" ProxyServerPort="${proxyPort}" ReceiveTimeout="${readTimeout}" NonProxyHosts="${nonProxyHosts}"/>
    <http:proxyAuthorization>
      <sec:UserName>${proxyUser}</sec:UserName>
      <sec:Password>${proxyPassword}</sec:Password>
    </http:proxyAuthorization>
  </http:conduit>
        
Then in the Spring application context XML file I have

<jaxws:client id="whatever-ID" serviceClass="whatever-class" address="${whatever-URL}" />

for each service I have a client for.

The problem: I don't see any SOAP message being logged by the in/out interceptors used by the bus (as configured in cxf.xml). If I use org.apache.cxf.jaxws.JaxWsProxyFactoryBean instead in the Spring configuration it works:

<bean id="whatever-factory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
    <property name="serviceClass" value="whatever-class" />
    <property name="address" value="${whatever-URL}" />
  </bean>

<bean id="whatever-ID" factory-bean="whatever-factory" factory-method="create" />
        
Why is that? Looking at the documentation and the source code didn't help for me.

Cheers,
Marcel

--
Marcel Stör, http://www.frightanic.com
Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Reply via email to