Petals-BC-FTP

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

Changes (23)

View Page History
*Table* *2.1. Service Unit attributes to provide services*
{table-plus}



|| 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) | \\
| password | the user password | | Yes (except when using 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 |\\
| transfer-type | transfer mode used for put or get files ascii/binary | ascii | No |
{table-plus}
*Table* \*2.2. Configuration of a Service Unit to provide a service (CDK)*
\\
|| Parameter \\ || Description \\ || Default value \\ || Required || \\ ||
| wsdl-imports\- download | If false, the external imports declared in the service WSDL won't be downloaded, so they won't be replaced by their content. | True | No | \\ |
| wsdl | Path to the WSDL document describing services and operations exposed by the provided JBI endpoints defined in the SU. \\
The value of this parameter is : \\
• an URL \\
• a file relative to the root of the SU package \\
If not specified, a basic WSDL description is automaticaly provided by the CDK. | \\ | No |
| timeout | Timeout in milliseconds of a synchronous send. this parameter can be used in conjunction with the sendSync(Exchange exchange) method of the Listeners. Set 0 for an infinite timeout. | | No |

|| Parameter || Description || Default value || Required ||
| wsdl-imports\- download | If false, the external imports declared in the service WSDL won't be downloaded, so they won't be replaced by their content. | True | No |
| wsdl | Path to the WSDL document describing services and operations exposed by the provided JBI endpoints defined in the SU. \\
The value of this parameter is : \\
• an URL \\
• a file relative to the root of the SU package \\
If not specified, a basic WSDL description is automaticaly provided by the CDK. | - | No | \\ |
| timeout | Timeout in milliseconds of a synchronous send. this parameter can be used in conjunction with the sendSync(Exchange exchange) method of the Listeners. Set 0 for an infinite timeout. | - | No | \\ |
| org.ow2.petals.messaging.provider.coa | Check Petals container document for further details. This propety activates the bypass of acknowledgment messages destinated to this SU. |

{table-plus}

h3. 2.1.2. Service Unit content \\





{code}<ver:mput xmlns:ver="http://petals.ow2.org/components/ftp/version-3.0">
<!--Optional:-->













{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>

The available exchange patterns are : *InOptionalOut*, *InOut*.
|| aaaaaaaaaa || bbbbbb \\ || ccccccccccccc \\ || dddddddddddddd \\ ||
| 111111111111 \\ | 2222 \\ | 333333333 \\ | 4444444444444444444 \\ |
Bonjour.