camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "harbeer.kadian" <>
Subject How to receive soap response attachment using Camel-Http component
Date Tue, 28 Sep 2010 05:40:29 GMT


I am using Camel-Http component to talk with remote Webservices.
One of the operation present in the Webservice returns an attachment with
The problem here is that the camel copies the whole response in the body
part of org.apache.camel.Message class.
The message class contains method like message.getAttachment(String id).
There should be some way by which you can get your webservice response in
the attachment section of Message class.

The current structure of body is as follows

Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
Content-Transfer-Encoding: binary

<?xml version="1.0" ?><S:Envelope

Content-Id: <>
Content-Type: application/xml; charset=UTF-8
Content-Transfer-Encoding: binary

<?xml version="1.0" encoding="UTF-8"?><name>test-name</name>

Here the last two lines represents the content inside the attachment.
Please tell what settings need to be done to get the attachment data in
message.getAttachment() method.

With Regards
Harbeer Kadian
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message