When using any of our namespace handlers, they look for a Bus object 
specifically in that Spring context.  If there isn't one there, they create 
one for the context.    In this case, not only would it not get the bus, it 
wouldn't have your conduit properties picked up either.

Your best bet is to import your config below directly into your other spring 
context.


Dan


On Wednesday, March 07, 2012 04:59:45 PM Marcel Stör wrote:
> 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
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to