Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9103

camel-cxf does not handle soapfaults with ws-addressing headers in async mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Information Provided
    • 2.15.3
    • None
    • camel-cxf
    • None
    • Unknown

    Description

      I am invoking a SOAP 1.1 webservice with WS-Addressing using camel-cxf. When the webservice returns a soapfault that includes a ws-addressing header (<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>) which I believe is allowed per spec (ws-addressing) I can see in logs that cxf processes the response but the response never reaches Camel (would be handled by the DefaultErrorHandler). The thread just hangs forever.
      I have been able to get the same test to work if I configure the camel endpoint for cxf to use synchronous=true.
      I am attaching a maven project that contains a test that reproduces the issue. The test uses wiremock as a stub to return the response.
      If the endpoint in the camelcontext is changed to use synchronous=true the test succeeds (it gets the soapfault that is expected).

      Attachments

        1. camel-jboss-web.7z
          7 kB
          Bjørn Hilstad

        Activity

          People

            ffang Freeman Yue Fang
            bjorn.hilstad Bjørn Hilstad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: