You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jose María Zaragoza <de...@gmail.com> on 2014/06/23 12:47:08 UTC
2 questions about WS-Addressing support
Hello:
I'm using CXF 2.7.8 and I've got a couple of questions about
WS-Addressing support
1)
About this link
http://cxf.apache.org/docs/wsaconfiguration.html
I need to add the addressing interceptors (MAPCodec and MAPAggregator
), but if I only add
"org.apache.cxf.ws.addressing.WSAddressingFeature", all works fine
are both interceptors added implicitly ?
2) How I can modify/set MAP values by Spring context file (IoC context) ?
For example, how I can modify ReplyTo endpoint ?
Thanks and regards
RE: 2 questions about WS-Addressing support
Posted by Andrei Shakirin <as...@talend.com>.
Hi,
> -----Original Message-----
> From: Jose María Zaragoza [mailto:demablogia@gmail.com]
> Sent: Montag, 23. Juni 2014 12:47
> To: users@cxf.apache.org
> Subject: 2 questions about WS-Addressing support
>
> Hello:
>
> I'm using CXF 2.7.8 and I've got a couple of questions about WS-Addressing
> support
>
> 1)
> About this link
>
> http://cxf.apache.org/docs/wsaconfiguration.html
>
> I need to add the addressing interceptors (MAPCodec and MAPAggregator ),
> but if I only add "org.apache.cxf.ws.addressing.WSAddressingFeature", all
> works fine
>
> are both interceptors added implicitly ?
This is exactly what WSAddressingFeature does (via AddressingFeatureApplier.java): adds MapAggregator and MAPCodec interceptors.
See https://svn.apache.org/repos/asf/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/impl/AddressingFeatureApplier.java for details.
>
>
> 2) How I can modify/set MAP values by Spring context file (IoC context) ?
> For example, how I can modify ReplyTo endpoint ?
You can create and initialize AddressingProperties object using Spring and set it as a property for jax-rs client/endpoint:
<bean id="maps" class=" org.apache.cxf.ws.addressing.AddressingProperties ">
...
</bean>
<jaxws:client id="customerService" serviceName="customer:CustomerServiceService" endpointName="customer:CustomerServiceEndpoint" address="http://localhost:9090/CustomerServicePort" serviceClass="com.example.customerservice.CustomerService">
<jaxws:properties>
<entry key=" javax.xml.ws.addressing.context" ref="maps"/>
</jaxws:properties>
</jaxws:client>
Regards,
Andrei.
>
> Thanks and regards