0 Replies Latest reply on Dec 12, 2016 11:40 AM by ravi narayanan

    SCA Binding Attachment Support

    ravi narayanan Expert

      Hi All,

       

      I have a switchyard service with sca binding and camel xml  implementation.

       

      i have a camel process which gets the pdf as binary data from document generation system.

       

      I have set the attachment in camel exchange attachment part,and the pdf atachment is set in exchange object.

       

      DataHandler dataHandler = new DataHandler(outputChannels.get(i).getObjectData(),"application/octet-stream");

      exc.getIn().addAttachment("pdf", dataHandler);

       

      The sca binding is not returning attachment it is only returning the body of the message.

       

      Can you please help.