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

SOAP with attachments not mapped correctly from CXF to Camel for CXF_MESSAGE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.4
    • 2.12.4, 2.13.2, 2.14.0
    • camel-cxf
    • None
    • Unknown

    Description

      SOAP with attachments messages are not mapped correctly from CXF to Camel and back if using CXF_MESSAGE message format.

      We are having following simple camel route:

      <route>
          <from uri="cxf:bean:Endpoint1" />
          <to uri="cxf:bean:Endpoint2" />
      </route>
      

      So mapping between CXF Endpoint 1 and Camel creates attachments in Camel exchange and sets the Camel IN message as a soap message. However, it's missing a bit of removing the attachments from the message as they are already added to the Camel Exchange.

      Mapping from Camel and CXF Endpoint 2 maps Camel IN message (Soap with attachments) to CXF and then adds the attachments from Camel exchange which results in a messed up soap message that appears to contain twice as many attachments and it has messed up MIME boundaries as well as some of them are from the input message and some of them are generated during the last mapping.

      As a workaround we have added a Camel processor that clears the attachments from the IN Message in Camel .

      Attachments

        1. junit_test.diff
          8 kB
          Joe Luo

        Activity

          People

            njiang Willem Jiang
            joeluo Joe Luo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: