Chapter 4 - Syntax Summary | Using FTP Adapter Commands |
Using FTP Adapter Commands
Use the adapter commands from the Map Designer or Integration Flow Designer as the data source of an input map card and as the data target for an output map card. You can also use the adapter on the command line or in a map rule using the functions GET, PUT, or RUN.
The FTP adapter requires the
GET > Source > Command and PUT > Target > Command settings.
See Chapter 3 - FTP Commands for more information on FTP adapter commands and their syntax. For general information about commands, refer to the Resource Adapters Reference Guide.
Examples
To retrieve the file mine.txt, located on the host computer (no port specified) under c:\forms with no user name or password specified, enter the following command:
-URL FTP://host/c:/forms/mine.txt
The command example would retrieve the entire contents of the forms directory (because the file name is omitted) from the host computer:
URL Syntax
The syntax for the rest of the URL varies depending on the scheme selected. URL schemes that involve the direct use of an
//user:password@host:port/url_path
Some or all parts of user:password@, :password, :port, and /url_path may
be excluded. The
user An optional user name. Some schemes allow the specification of a user name.
password An optional password. When present, it follows the user name and is separated by a colon. The user name and password are followed by
F T P A d a p t e r R e f e r e n c e G u i d e
3 1