Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-413

CXF MTOM to Camel-Attachment improvement.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 2.6.0-fuse-01-09
    • 2.6.0-fuse-00-00
    • None
    • None

    Description

      From customer:

      When using MTOM with CXF endpoints the MTOM-streams are propagated to Camel-Attachments. This is very nice, but has a side effect. By default the the attachment(s) are still there when it is time to send the output, this means the Camel-Attachments will be added to the CXF response as SoapAttachments. Since the response does in general not expects attachments this gives an error (see below).

      org.apache.cxf.interceptor.Fault: Could not write attachments.
      at org.apache.cxf.interceptor.AttachmentOutInterceptor$AttachmentOutEndingInterceptor.handleMessage(AttachmentOutInterceptor.java:98)[141:org.apache.cxf.bundle:2.2.11.fuse-00-00]
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)[141:org.apache.cxf.bundle:2.2.11.fuse-00-00]
      at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:78)[141:org.apache.cxf.bundle:2.2.11.fuse-00-00]
      ...

      Camel by default copies the entire input message to the output message, including any attachments. Unless a custom processor is put in place that removes these attachments, the CXF consumer endpoint will try to send the attachments back to the client. Since the WSDL did not define any further attachments it raises the error above.

      Attachments

        Activity

          People

            willem.jiang Willem Jiang (Inactive)
            rhn-support-tmielke Torsten Mielke
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: