petals-BC-FTP

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

Changes (12)

View Page History
The petals-bc-ftp component allows to put, get or list files on an FTP server.
\\
_FTP protocol (RFC959 ) is described at :_ \[{color:#003f80}\_\+{color}{color:#003f80}[http://www.w3.org/Protocols/rfc959/+\_|http://www.w3.org/Protocols/rfc959/+_]{color} \|??? \]
\\
_FTP protocol (RFC959 ) is described at: [http://www.w3.org/Protocols/rfc959/|http://www.w3.org/Protocols/rfc959/]\\
*Figure* *1. ftp component mechanism*
\\ !worddav00e048e80e16a1127d043d3aa5a941a5.png|height=216,width=511!\\
h1. Chapter 1. Component Configuration

The following attributes can be set during the installation phase to configure the component, using the params element of the jbi-install-component ANT task :

_no configuration for this component_
h2. 2.1. Put XML content or send FTP commands to the FTP server

PROVIDE SERVICE : Expose an external service in the JBI environment to put XML messages or send FTP commands on an FTP server.
commands on an FTP server.

Petals FTP binding component allows JBI consumers to send XML messages to an FTP server. A JBI endpoint is registered into the JBI environment, and is linked to an FTP server, with a configured user/password. When the FTP component receives a message exchange from Petals platform, the XML content of the message is put on the FTP server.

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\*
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.
\\

h3. 2.1.1. Service Unit descriptor

The service unit is configurable via its extensions in the jbi.xml file :
\\
{code}<?xml version="1.0" encoding="UTF-8"?>



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



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



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