Integration Server 10.3 | Flat File Schema Developer's Guide | Sending and Receiving Flat Files | Submitting a Flat File to Integration Server via File Polling
 
Submitting a Flat File to Integration Server via File Polling
You can send a flat file to the Integration Server via a File Polling processing service. For general steps to configure the File Polling listener port, see webMethods Integration Server Administrator’s Guide.
To poll specifically for flat files, you must specify the Default Content Type as “application/x–wmflatfile”. When a file with this content type is posted to the directory on the Integration Server that you are monitoring for flat files (Monitoring Directory), the Integration Server executes the service that you specified as the Processing Service.
Because the content type is “application/x–wmflatfile”, when the Integration Server receives the flat file in the appropriately configured monitoring directory, it passes the document as an InputStream to the service configured in the pipeline variable ffdata.
The File Polling processing service of Integration Server processes files in the order in which they are received. Integration Server determines the order for processing files by comparing the timestamps of the files in the monitoring directory. In a high speed environment, where many files are placed in the monitoring directory at once, resulting in some of the files having the same timestamp, Integration Server processes the files alphabetically.