How are you serializing the message? Paul
On 19 March 2014 20:00, Ramindu Deshapriya <[email protected]> wrote: > Hi, > > I am attempting to add an attachment via DataHandler to the Synapse Message > Context in a class mediator via the following code: > > DataHandler dataHandler = new DataHandler(new > InputStreamDataSource(photoStream)); > ((Axis2MessageContext) > messageContext).getAxis2MessageContext().addAttachment("Photo", > dataHandler); > > However, it does not seem to be getting attached, i.e. it is not showing up > on the wirelog after the response is sent from the class mediator. > > Is there a different approach to accomplish this? > > Thanks. > > > > -- > View this message in context: > http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Adding-attachment-to-Synapse-MessageContext-tp93759.html > Sent from the WSO2 Development mailing list archive at Nabble.com. > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > -- Paul Fremantle CTO and Co-Founder, WSO2 OASIS WS-RX TC Co-chair, Apache Member UK: +44 207 096 0336 US: +1 646 595 7614 blog: http://pzf.fremantle.org twitter.com/pzfreo [email protected] wso2.com Lean Enterprise Middleware Disclaimer: This communication may contain privileged or other confidential information and is intended exclusively for the addressee/s. If you are not the intended recipient/s, or believe that you may have received this communication in error, please reply to the sender indicating that fact and delete the copy you received and in addition, you should not print, copy, retransmit, disseminate, or otherwise use the information contained in this communication. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
