Logic to Include in the FTP Client
When using FTP, the client must include logic to:
![*](chapterTOC_bullet.png)
Initiate an FTP connection to
Integration Server's FTP listening port, for example, 8021.
![*](chapterTOC_bullet.png)
Change to the directory that represents the service you want to invoke using the
cd command.
For example,
cd \ns\myEDIServices\v1\processEDIDoc
Note:The root directory for this operation is your Integration Server's namespace directory (ns), not the root directory of the target machine. Therefore, if you want to send a file to a service in the myEDIServices.v1 folder, you use \ns\myEDIServices\v1\ ServiceName as the path to that service, not Integration Server_directory\instances\$instance_name\packages\myEDIServices\v1\ServiceName.
![*](chapterTOC_bullet.png)
Send the EDI document to this directory using the following
put command:
put localFileName filename;content type:content sub-type
For example,
put x12_850 x12_850;application:EDIstream
In this example, the local EDI document's name is X12_850, the document's content type is application, and the document's content sub-type is EDIstream.