Description
Hi,
When I try to use WS-RM and put all parameters into the config file, CXF does not set up decoupled destination, although it's specified there:
<http:conduit name="{http://someaddr}ServiceName.http-conduit"> <http:client DecoupledEndpoint="http://localhost:9015/dec_endpoint"/> </http:conduit>
However, when the decoupled destination address is set explicitly in the code, everything works OK:
Client client = ClientProxy.getClient(port);
HTTPConduit conduit = (HTTPConduit) client.getConduit();
HTTPClientPolicy clientPolicy = conduit.getClient();
clientPolicy.setDecoupledEndpoint("http://localhost:9015/decoupled_endpoint");
The problem was exposed after migration from CXF 2.4.1 to CXF 2.6.0, so everything should be alright with the config files. Also, you can look at /samples/ws-rm from the CXF binary distribution. This demo does not fetch the destination address from the config file, since all client messages contain anonymous ReplyTo address:
<ReplyTo xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</Address> </ReplyTo>
Instead of:
<ReplyTo xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"> <Address>http://localhost:9990/decoupled_endpoint</Address> </ReplyTo>
Same demo runs fine on CXF 2.4.