FTP Example

The FTP example contains two adapter configurations: FTPReader.adfilemodel and FTPWriter.adfilemodel. The example shows how the adapter transfers files in SFT mode without trigger messages.

In FTPReader.adfilemodel, Publication Service parses the ftp_ecm.txt file and publishes the content on the ftp subject without any predefined schemas or processing. In the Configuration tab of Publication Service, the Transfer Mode field is Simple File Transfer, the Life Cycle field is Once-Only. In the SFT tab, the Transmission Buffer Size field is 32 kilobytes, the Progress File Name field is __FTPReaderPublicationService.prg, and the File Transfer Mode field is Binary.

In FTPWriter.adfilemodel, Subscription Service listening on this subject receives the file and writes it to the outftp.txt file in the output directory. In Subscription Service, the Transfer Mode field is also Simple File Transfer. In the SFT tab, the File Transfer Mode field is Binary.