|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (4)
View Page History\\
{info}
{info}
All operation support wild card character.
{info}
{info}
\\
The service might return a Fault when an element in the request is missing or if an IO error occurs.
\\
h3. GetAsAttachement Operation
When the get operation is set on the incoming IN message, the component retrieve ONE file from the configured directory and return it as an attachment.
The name of the file to retrieve is set in the XML IN content of the message.
The IN message looks like :
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
<ver:getAsAttachment xmlns:ver="http://petals.ow2.org/components/ftp/version-3">
<ver:filename>file name to retrieve</ver:filename>
</ver:getAsAttachment>
{code}
The OUT message returned to the consumer contains files, as attachments, and an XML message report :<?xml version="1.0" encoding="UTF-8"?>
{code:lang=xml}
<tns:getAsAttachmentResponse xmlns:tns="http://petals.ow2.org/components/ftp/version-3">
<tns:attachment>
<tns:filename><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test1.xml"/></tns:filename>
</tns:attachment>
</tns:getAsAttachmentResponse>
{code}
The service might return a Fault when an element in the request is missing or if an IO error occurs.
The available exchange pattern is : *InOut*.
The name of the file to retrieve is set in the XML IN content of the message.
The IN message looks like :
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
<ver:getAsAttachment xmlns:ver="http://petals.ow2.org/components/ftp/version-3">
<ver:filename>file name to retrieve</ver:filename>
</ver:getAsAttachment>
{code}
The OUT message returned to the consumer contains files, as attachments, and an XML message report :<?xml version="1.0" encoding="UTF-8"?>
{code:lang=xml}
<tns:getAsAttachmentResponse xmlns:tns="http://petals.ow2.org/components/ftp/version-3">
<tns:attachment>
<tns:filename><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test1.xml"/></tns:filename>
</tns:attachment>
</tns:getAsAttachmentResponse>
{code}
The service might return a Fault when an element in the request is missing or if an IO error occurs.
The available exchange pattern is : *InOut*.
h3. MGet Operation
|| Attribute || Description || Default value || Required ||
| server | IP or DNS name of the server | | {center}Yes{center} |
| server | IP or DNS name of the server | | {center}Yes{center} |