BizTalk adapter for SFTP and FTP using WinScp
This adapter works for both FTP and SFTP using WinScp. Technically it should also work for the other protocols allowed by WinScp, but only (S)FTP is tested.
There are some features not in standard adapter that should be practical.
- Username is added to the Uri. Meaning you can have multiple receive locations to the same host w.o specifiying remotepath.
- Specify multiple piped filemasks
- Specify list of piped subfolders
- Exclude specified fileextension
- Add a grace period. Files must be untouched for a certain time before they are picked.
- Better log possibilities
- Temporary fileextension. Used while transmitting files
- Dynamic Mode. You dynamically set filename and folder path(s) by updating OutboundTransportLocation in a sendpipeline. IsDynamic must also be set to true.
A tip is to use https://github.com/fernandodsanjos/BizTalk.PipelineComponents.CustomMacros - Dynamic folder creation. In Dynamic mode remote folder(s) will be created if they do not already exist.
Copy all binaries to the folder C:\Program Files (x86)\Common Files\Microsoft BizTalk\BizTalk.Adapter.WinScp.
If you want to change location of the binaries make sure to change the path in the WinScp.reg file.
Also copy the files bellow from the Biztalk installation folder into the BizTalk.Adapter.WinScp folder.
WinSCP.exe
WinSCPnet.dll
Run the WinScp.reg file
The adapter can now be added like any other adapter.