Petals-BC-FTP 3.3

Version 1 by Mathieu Carrolle
on Sep 23, 2010 09:43.

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

Changes (16)

View Page History



|| Attribute || Description || Default value || Required ||
| server | IP or DNS name of the server (do not include "ftp://" prefix) \\ | | Yes (except when uins FtpService) |
| transfer-type | transfer mode used for put or get files ascii/binary | ascii | No |
| delete-processed-files | If true, the service delete the files processed by operation get or mget | false | No \\ |
| encoding | Set the encoding encoding value used to process ftp operation. | Default JVM Encoding \\ | No \\ |
| overwrite | Defined if the component have to overwrite the existing remote file. If "false", the file is not copied and a fault is returned to the caller saying "The file already exists". | False \\ | No \\ |
{table-plus}
            <ver:connection-mode>active|passive (optional, default is active)</ver:connection-mode>
            <ver:delete-processed-files>true|false(optional, default is false)</ver:delete-processed-files>
            <ver:encoding>?</ver:encoding>
<ver:overwrite>true|false(optional, default is false)</ver:overwrite>
            <ver:overwrite>true|false(optional, default is false)</ver:overwrite>
         </ver:connection>
...

{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
<ver:mput xmlns:ver="http://petals.ow2.org/components/ftp/version-3.0">
<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>
<!--Optional:--> <ver:connection>
<ver:connection>
...
</ver:connection>
</ver:mput>
{code}
\\
{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
<tns:mgetResponse xmlns:tns="http://petals.ow2.org/components/ftp/version-3.0">
<tns:attachments>
<tns:filename><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test1.xml"/></tns:filename> <tns:filename>source.xml</tns:filename>
<tns:filename><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test2.xml"/></tns:filename> <tns:filename>source2.xml</tns:filename>
</tns:attachments>
<tns:filename>myFile.txt</tns:filename>
</tns:mgetResponse>
{code}