EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Automate secure file uploads with BizCrypto SFTP adapter for BizTalk

BizCrypto adapters for BizTalk server can be used to automate secure file uploads. A simple automating application can be created without writing code at all. Let's create the application that monitors the "C:\Upload\" directory and uploads all the found files to the SFTP server.

First of all, open BizTalk Administration Console (all the further explanation concerns Microsoft BizTalk 2006 server) and expand the BizTalk Server Administration - BizTalk Group node in the Console Root tree view.

Create new BizTalk application

  1. Right-click on the Applications node and choose New->Application menu item.
  2. Specify the name for your application (e.g., "Simple SFTP uploader") and click OK. The corresponding application node will be added to the Applications subtree.

Create a receive location

The task of receive location is monitoring the "C:\Upload\" directory and initiating the execution of the application if some files were encountered there.
  1. Expand the Applications - Simple SFTP uploader node and go to the Receive Ports item.
  2. Right click on the [empty] surface on the right and choose New -> One-way receive port item from a menu.
  3. In the opened Receive Port Properties window specify a name for the port (e.g., "FileReceivePort"), and then go to the Receive Locations tab. Click New button.
  4. In the opened Receive Location Properties window specify a name for the receive location (e.g., "FileReceiveLocation"). In the Type combo box choose the "FILE" item and click Configure button. In the opened FILE Transport Properties window specify the desired read folder ("C:\Upload") and the file mask. Click OK.
  5. close Receive Location Properties and Receive Port Properties dialogs by clicking OK buttons on both.

Create a send port

Send port is responsible for sending messages to a remote server via SFTP protocol.
  1. Go to the Send Ports item in the Applications - Simple SFTP uploader node.
  2. Right click on the [empty] surface on the right and choose New -> Static one-way send port item from a menu.
  3. In the opened Send Port Properties window specify a name for the port (e.g., "SFTPSendPort").
  4. In the Type combo box choose the "SFTP" item (the exact name may differ and depends on the name that was specified when the adapter has been installed to the BizTalk server) and click Configure button. In the opened Adapter Properties dialog specify the necessary connection properties, such as remote server address, username, password and the location where to put the uploaded file. When everything is ready, click OK.
Do not close the Send Port Properties window now.

Creating a filter

By themselves, the receive port does not know what to do with the files detected, and the send port does not know that there are files to be processed. Filter is needed to create a correspondence between created receive and send ports, so that the send port could take the files read by the receive port and upload them to the server.
  1. Go to the Filters tab.
  2. In the Property combo box choose the BTS.ReceivePortName entry. Ensure that the Operator value is "==" (this value is set by default).
  3. In the Value cell type the name of the receive port you have created on step 2 ("FileReceivePort").
That's all. You can test the created application by putting some file satisfying the mask to the "C:\Upload\" directory and checking that it is successfully uploaded to the SFTP server. Once the file is copied to the "C:\Upload\", it is processed by the receive port and passed to the send port, which, in turn, uploads it to the server.

Return to the list

|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!