XML File Reader
Description
The XML File reader reads XML files and converts the content into a message to be processed by 1Gateway. The configuration can point at a directory where to read files from, at the file itself, or at an ftp server.
Prerequisites
- Give the directory or file read/write permissions
Installation
Make sure you have the 1gateway zip file that includes the plugin files and valid licences information ready. This file has been provided to you with the installation files.
Configuration
Open the main menu and click on "New plugin"

Select the plugin you want to configure. Use the Filter field if needed.
Sample Local file profile

Sample FTP file profile

Profiles fields to configure
Field name | Supported values | Used for FTP or Local | Description |
---|---|---|---|
Profile name | Any string | FTP and local | Name of the profile |
File or directoy name | Any string | Local | Name of the file content to read or directory name from which to read the files from |
ID location | Any string | FTP and local | Field in XML file that indicates the ID of this message |
Delete file after read | true / false | Local | If selected, it will delete the file after it is read. |
Read files from FTP server | true / false | FTP | Tick if you want to read files from FTP server instead of locally |
FTP server | Hostname or ip | FTP | Self explanatory |
FTP port | Port | FTP | Self explanatory |
FTP user | User name | FTP | Self explanatory |
FTP password | Password | FTP | Self explanatory |
Folder on ftp server | Folder name | FTP | The directory on the ftp server without leading or trailing slash / |
Use binary | true / false | FTP | Issue a BIN transfer request |
Delete files from ftp server after processing | true / false | FTP | Delete the file from the ftp server |
Folder to archive files after processing | Valid directory name | FTP | A folder to move the file to. Folder needs to exist. Do NOT tick delete if you want to archive the files. |
Polling interval | Any integer | both | Polling interval in seconds (default is 300) |