OSB - send file in email attachment in SOAP attachment
521236May 5 2010 — edited May 10 2010Hi!
I would like to send a file in email in SOAP attachment.
I thought it would be a simple task, I will create a proxy service, which calls a business service. There is a routing action in proxy service to business service and after the rouiting there is a replace action, I replace the attachments variable with this:
<con:attachment xmlns:con="http://www.bea.com/wli/sb/context">
<con:Content-Type>application/pdf</con:Content-Type>
<con:Content-Transfer-Encoding>base64</con:Content-Transfer-Encoding>
<con:Content-Disposition>attachment; filename="Simple.pdf"</con:Content-Disposition>
<con:body>{$attachments/ctx:attachment/ctx:body}</con:body>
</con:attachment>
I received the email, but i cannot open the document, because it is corrupted...
Please, could someone help me?
I can't find out the solution.
Thanks!
Viktor