Hi, You cannot do this using a camel-http endpoint. The HTTP endpoint supports all kinds of Markup Languages and does not care about SOAP, XML, HTML etc...
In order to get proper attachment support you need to use a CXF producer endpoint, & when the response arrives, use a processor to get the attachment from the Camel Message Exchange. For example from("direct:foo") .to("cxf:http://host:port/myservice?...) .process(new Processor() { public void process(Exchange exchange) throws Exception { DataHandler dr = exchange.getOut().getAttachment(photoId); if (dr.getContentType().equalsIgnoreCase("application/octet-stream") { LOG.info("Got a GIF/JPEG"); } } }); Hope this helps. Cheers, Ashwin... ----- --------------------------------------------------------- Ashwin Karpe Apache Camel Committer & Sr Principal Consultant FUSESource (a Progress Software Corporation subsidiary) http://fusesource.com http://fusesource.com Blog: http://opensourceknowledge.blogspot.com http://opensourceknowledge.blogspot.com --------------------------------------------------------- -- View this message in context: http://camel.465427.n5.nabble.com/How-to-receive-soap-response-attachment-using-Camel-Http-component-tp2856274p3073555.html Sent from the Camel - Users mailing list archive at Nabble.com.