Petals-BC-FTP

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

Changes (29)

View Page History







|| Attribute || Description || Default value || Required ||
| server | IP or DNS name of the server | | Yes (except when uins FtpService) |
\\

The available exchange patterns are : *InOptionalOut*, *InOnly*, *RobustInOnly*.
The available exchange pattern is : *InOnly*.
\\

h4. 2.1.3.3. MPUT operation

When the mput operation is set on the incoming IN message, the component write the attachments on the FTP server. The IN message looks like :
\\
[http://petals.ow2.org/components/ftp/version-3.0]

The IN message looks like :

{code:lang=xml}<ver:mput xmlns:ver="http://petals.ow2.org/components/ftp/version-3">
<ver:attachments>
<ver:filename><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test1.xml"/></ver:filename>
<ver:filename><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test2.xml"/></ver:filename>
</ver:attachments>









{code}<ver:mput xmlns:ver="http://petals.ow2.org/components/ftp/version-3.0">
<!--Optional:-->
<ver:connection>
The service might return a Fault when an element in the request is missing or if the FTP connection failed

The available exchange patterns are : *InOptionalOut*, *InOnly*, *RobustInOnly*.
The available exchange pattern is : *InOut*.
\\
\\
\\

h4. 2.1.3.4. GET operation
The IN message looks like :
\\
[http://petals.ow2.org/components/ftp/version-3.0]





























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

The available exchange patterns are : *InOptionalOut* and *InOut*.
The available exchange patterns is : *InOut*.


When the mget operation is set on the incoming IN message, the component retrieves files from the FTP server, according to the file names (or filters) set in the XML request.
\\

There is no recursivity, sub folders are ignored.


Each file is set in the OUT message as an attachment. The IN message looks like :
\\
[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:-->
<ver:filename>*.xml</ver:filename>
<ver:filename>myFile.txt</ver:filename>
<!--Optional:-->
<ver:connection>
...
</ver:connection>
</ver:mget>
{code}
The OUT message returned to the consumer contains files, as attachments, and an XML message report :
\\
[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>
<tns:filename>source2.xml</tns:filename>
<tns:filename>myFile.txt</tns:filename>
{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
<tns:mgetResponse xmlns:tns="http://petals.ow2.org/components/ftp/version-3">
<tns:attachments>
<tns:filename><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test1.xml"/></tns:filename>
<tns:filename><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test2.xml"/></tns:filename>
</tns:attachments>
</tns:mgetResponse>
{code}
\\

The available exchange patterns are : *InOptionalOut*, *InOut*.
The available exchange pattern is : *InOut*.
{column}
{column:width=350px}