• Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

Comments (4)

1 Shreyasma commented Permalink

Hi Herman,

I have a requirement where we fetch a XML file using the SFTP FSH. This XML contains an email address and a location to a file.
I want to use the datapower to send this file as an attachment to the email address mentioned in the XML.
Please guide me on how to achieve this?

2 HermannSW commented Permalink

Hi Shreyas,

that should be easy to do. Just use above stylesheet and revplace the ".../anim.gif" by your "filename", eg. <dp:url-open target="{$filename}" response="binaryNode"></dp:url-open>. Please make sure to use the improvement from this Blog posting for bigger attachments: https://www.ibm.com/developerworks/community/blogs/HermannSW/entry/doing_recursion_right17

3 j_deluca commented Permalink

Hi Hermann, How could I modify the "smtp.xsl" to attach a text file I pick up from an SFTP server.?In other words, the binary INPUT context.

4 HermannSW commented Permalink

Hi James,
in smtp.xsl the attachment is taken over HTTP (anim.gif, by target="http://stamm-wilbrandt.de/chess/en/Pb7/anim.gif"). Just make the <dp:url-open> @target us sftp protocol (http://pic.dhe.ibm.com/infocenter/wsdatap/v5r0m0/index.jsp?topic=%2Fcom.ibm.dp.xm.doc%2Fextensionfunctions41.htm).

Add a Comment Add a Comment