Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

CXF component attachment support for POJO not implemented as specified

$
0
0
Hi,

the CXF description states:

http://camel.apache.org/cxf.html#CXF-AttachmentSupport
<http://camel.apache.org/cxf.html#CXF-AttachmentSupport>

Attachment Support

"/POJO Mode:

Attachments are propagated to Camel message's attachments since 2.1. So, it
is possible to retreive attachments by Camel Message API

DataHandler Message.getAttachment(String id)/"

However, /org.apache.camel.component.cxf.DefaultCxfBinding/ explicitly
excludes attachments propagation for POJOs. This makes processing legacy
SOAP with attachments more difficult.

I suggest easing the condition for POJOs that do not use MTOM:

if dataFormat is POJO and properties.mtom-enabled is false, propagate the
attachments into and from the camel Exchange.

Thank you.

Viewing all articles
Browse latest Browse all 5648

Trending Articles