petals-bc-ftp-v3.3

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

Changes (26)

View Page History
{column}



h1. PEtALS-BC-FTP

\\ !ftp.png|border=1,width=546,height=320!\\


h1. Feature

{info}All attachment are processed by using XOP rules.(XML-binary Optimized Packaging : [http://www.w3.org/TR/xop10/] ){info}



h1. Recommend usage

Petals FTP binding component allows JBI consumers to call FTP command. A JBI endpoint is registered into the JBI environment, and is linked to an FTP server, with a configured user/password.To use this service, the consumer has to call explicitely the *{service* *namespace{*}*}get/getAsAttachment/mget/put/mput/dir/del* operations.When the FTP component receives a message exchange from Petals platform, it call the FTP command associate with the jbi operation.

h1. 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:
h1.


h2. Configuration of the component (CDK)

\\
{include:0 CDK Component Configuration Table}


{include:0 CDK Parameter scope}

h1. Service Configuration

{include:0 CDK SU Provide Configuration}

h2. PROVIDE SERVICE : Expose an external service in the JBI environment to send FTP commands on an FTP server


Petals FTP binding component allows JBI consumers to call FTP command. A JBI endpoint is registered into the JBI environment, and is linked to an FTP server, with a configured user/password.To use this service, the consumer has to call explicitely the *{service* *namespace{*}*}get/mget/put/mput/dir/del* operations.When the FTP component receives a message exchange from Petals platform, it call the FTP command associate with the jbi operation.
h2. PROVIDE SERVICE


In provide mode, the component expose an external service in the JBI environment to send FTP commands on an FTP server
This service can either connects to an FTP server configured in the ServiceUnit, or retrieve the FTP server information in the XML message request.
\\
\\


h3. Service Unit descriptor




|| Attribute || Description || Default value || Required ||
| server | IP or DNS name of the server | | Yes (except when uins FtpService) |
{table-plus}



h3. Service Unit content 

{code}



h3. FTP Service



\\
The petals-bc-ftp component provides 5 operations, when using the Ftp service:
\\
* *put* : copy incoming XML message on the FTP server
* *mput* : copy incoming message attachments on the FTP server
* *get* : get one specified file from the FTP server and return it as an XML message
* *getAsAttachment* : get one specified file from the FTP server and return it as attachment .
* *mget* : get files from the FTP server and return them as attachments
* *dir* : return the files list on the FTP server
* *del* : remove file on the FTP server

When using the FTP service, you can optionnaly define the FTP connection information in your XML request. If you don't, the service unit parameters are used.



h4. Put Operation

\\


h4. MPut Operation

\\


h4. Get Operation

{info}Only xml file could be processed otherwise an error will be raised.{info}



h4. GetAsAttachment Operation




h4. MGet Operation

The available exchange pattern is : *InOut*.


h4. Dir Operation

The available exchange pattern is : *InOut*.


h4. Del Operation

The service might return an Error when an element in the request is missing or if the FTP connection failed.
The available exchange pattern is : InOnly.

h1. 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:



h2. Configuration of the component (CDK)

\\
{include:0 CDK Component Configuration Table}


{include:0 CDK Parameter scope}
{column}
{column:width=25%}