Using the File or FTP transport to trigger a proxy service upon arrival of a new file
In this recipe, we will trigger a proxy service upon arrival of a file in a certain location. We will implement both, a proxy service listening on a folder in a local filesystem as well as one listening to a remote location via FTP.
Getting ready
In order to make working with the FTP example as simple as possible, we first install a simple local FTP server:
From http://coreftp.com/server/index.html, download the Core FTP Server.
Start the installer and click through it (leave all options on default).
Create a folder
C:\work\ftp
.Launch the Core FTP Server executable.
Click on Setup.
Click on New.
Enter
OSB
in the Domain Name field.Enter
localhost
in the Domain IP/Address field.Enter
C:\work\ftp
in the Base directory field.Click on OK .
Back on the main setup window, select the newly created domain and click New on the lower half of the window, to create a user.
Enter
osb
in the User name field.Enter
osb
in the...