Hi, > -----Original Message----- > From: Jose María Zaragoza [mailto:[email protected]] > Sent: Montag, 23. Juni 2014 12:47 > To: [email protected] > 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
