![]() ![]() ![]() When we execute the interface, post successful transfer we can see message headers in message monitor, We can see a new header added (with REST) to the message and it has got the SFTP ASMA FileName value in it.1 for creating a new ASMA namespace and assigning variable to the message header.1 for storing SFTP ASMA parameter to a newly created variable filename.Under Module tab insert 2 Dynamic Configuration bean like below.In the Sender SFTP adapter tick ASMA and check File Name. ![]() I used DynamicConfigurationBean in the sender SFTP adapter to create REST adapter message headers so that I can later use in REST receiver adapter using ASMA. we can do this by using java UDF (creating REST adapter context objects) in graphical mapping or java mapping but this involves development on ESR which I wanted to avoid. We usually use this when we develop pass-through interface using File and SFTP adapter, recently I came across a situation where I need to send (just pass-through) file from SFTP server to REST api and the receiver was expecting filename in the HTTP Headers. We use DynamicConfigurationBean bean to edit the message header for adapter-specific message attributes also to add, delete attributes from message headers.
0 Comments
Leave a Reply. |