JaxWsProxyFactoryBean & WS-Addressing in Configuration

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JaxWsProxyFactoryBean & WS-Addressing in Configuration

jaybytez
How would I enable WS-Addressing for doing a web service call using JaxWsProxyFactoryBean?

Can this be done through the following configuration or does it only require the Addressing annotation on the SEI?

<bean id="sampleServiceProxyFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean" lazy-init="true">
    <property name="serviceClass" value="com.foo.SampleService"/>
    <property name="address" value="${service.url}"/>
       <property name="inInterceptors" ref="logInbound"/>
       <property name="outInterceptors">
          <list>
        <ref bean="saajOutInterceptor"/>
           <ref bean="wss4jOutInterceptor"/>
           <ref bean="logOutbound"/>
        </list>
       </property>
       
  </bean>

Thanks,

Jay
Reply | Threaded
Open this post in threaded view
|

Re: JaxWsProxyFactoryBean & WS-Addressing in Configuration

Daniel  Kulp
Administrator

You should be able to add:

<property name="features">
  <list>
      <bean class="org.apache.cxf.ws.addressing.WSAddressingFeature"/>
.....


Dan


On Tuesday, August 09, 2011 3:52:26 PM jaybytez wrote:

> How would I enable WS-Addressing for doing a web service call using
> JaxWsProxyFactoryBean?
>
> Can this be done through the following configuration or does it only require
> the Addressing annotation on the SEI?
>
> <bean id="sampleServiceProxyFactory"
> class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean" lazy-init="true">
>     <property name="serviceClass" value="com.foo.SampleService"/>
>     <property name="address" value="${service.url}"/>
>        <property name="inInterceptors" ref="logInbound"/>
>        <property name="outInterceptors">
>           <list>
>         <ref bean="saajOutInterceptor"/>
>            <ref bean="wss4jOutInterceptor"/>
>            <ref bean="logOutbound"/>
>         </list>
>        </property>
>
>   </bean>
>
> Thanks,
>
> Jay
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/JaxWsProxyFactoryBean-WS-Addressing-in-Conf
> iguration-tp4683953p4683953.html Sent from the cxf-user mailing list archive
> at Nabble.com.
--
Daniel Kulp
[hidden email]
http://dankulp.com/blog
Talend - http://www.talend.com