petals-BC-FTP

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (10)

View Page History
The component can also provide a generic *Ftp service* . This service allows the consumer to call FTP commands. This service can either connects to an FTP server configured in the ServiceUnit, or retrieves the FTP server information in the XML message request.
\\
To use this generic service, the consumer has to call explicitely the *\{service* *namespace\}get/mget/put/mput/dir\*
operations. Otherwise, the standard PUT operation is called.
\\
|| Attribute || Description || Default value || Required ||
| server | IP or DNS name of the server | | Yes (except when uins FtpService) |
| port | the port number of the ftp server | 21 | No | \\ |
| user | the user login name used to connect to the server | | Yes (except when using FtpService) \\ |
| password | | the user password | | | Yes (except when uins FtpService) | \\ |
| folder | the folder on the FTP server | | No | \\ |
| filename | file name for the standard PUT operation (write the XML message content on the FTP server) | content.xml | No | \\ |
| connection-mode | In Active mode, the connection port is set by the client. In Passive mode, it is set by the server (default is Active) | active | No | \\ |
| transfer-type | transfer mode used for put or get files ascii/binary/auto (default is AUTO, but not safe) | auto | No |\\
{table-plus}



{code}<ver:get xmlns:ver="http://petals.ow2.org/components/ftp/version-3.0">
<ver:filename>file name to retrieve</ver:filename>
[http://petals.ow2.org/components/ftp/version-3.0]


{code:lang=xml}<ver:mget xmlns:ver="http://petals.ow2.org/components/ftp/version-3.0">
<!--1 or more repetitions:-->
[http://petals.ow2.org/components/ftp/version-3.0]


{code:lang=xml}<tns:mgetResponse xmlns:tns="http://petals.ow2.org/components/ftp/version-3.0">
<tns:filename>source.xml</tns:filename>