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

CXF endpoint doesn't play nice with doTry/doCatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.3
    • 2.20.0
    • camel-cxf
    • None
    • Unknown

    Description

      When using a CXF client endpoint to call a web service via SOAP/HTTP there are two possible error scenarios:

      1) The call fails immediately with an exception (e.g. because the service is down/the address is wrong)
      2) The call "succeeds" but returns a SOAP fault. This could also signal an error condition to the application.

      Currently, using doTry/doCatch doesn't work properly in either scenario because, apprently, the CXF endpoint nulls the message when receiving an exception or fault.

      Attachments

        1. camelTryCatch.zip
          18 kB
          Jens Granseuer
        2. camelTryCatch_now.zip
          21 kB
          Onder Sezgin

        Issue Links

          Activity

            People

              onders Onder Sezgin
              jensgr Jens Granseuer
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: