Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4315

CXF does not read decoupled destination parameters from a config file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.4.8, 2.5.4, 2.6.1
    • None
    • None
    • Unknown

    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.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            lsassexe Kirill Kadyrko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: