|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (27)
View Page History** *put:* Write the received JBI messages in a file with a specified name
** *mput:* Write the JBI message attachments it receives into files.
** *mput:* Write the JBI message attachments it receives into files.
** *get:* Retrieve *Xml* *XML* file corresponding to a pattern, from a folder. Return it as message payload.
** *getAsAttachment:* Retrieve the first file corresponding to a pattern, from a folder. Return it as message's attachment.(XOP standard)
** *mGet:* Retrieve files corresponding to a pattern, from a folder. Return them as message's attachment.
** *mGet:* Retrieve files corresponding to a pattern, from a folder. Return them as message's attachment.
</ver:mput>
{code}
{code}
The service does not return a message.
The service does not return a nominal response. It might return fault on following conditions, otherwise an error is returned:
* when no attachment is provided in the request, the fault '{{fileAttachmentExpected}}' is returned.
* when no attachment is provided in the request, the fault '{{fileAttachmentExpected}}' is returned.
The available exchange pattern is : *InOnly*.
</ver:get>
{code}
{code}
The OUT message returned to the consumer is the content of the XML file.
The service might return a Fault when an element in the request is missing or if an IO error occurs.
The service might return fault on following conditions, otherwise an error is returned:
* when the element '{{filename}}' is missing in the request, the fault '{{filenameMissing}}' is returned,
* when the expected file is not found, the fault '{{noFileFound}}' is returned,
* when the expected file is not a XML file, the fault '{{xmlFileExpected}}' is returned.
* when the element '{{filename}}' is missing in the request, the fault '{{filenameMissing}}' is returned,
* when the expected file is not found, the fault '{{noFileFound}}' is returned,
* when the expected file is not a XML file, the fault '{{xmlFileExpected}}' is returned.
The available exchange patterns is : *InOut*.
{info}Only xml file could be processed otherwise an error will be raised.{info}
{info}Only XML file could be processed otherwise the fault '{{xmlFileExpected}}' is returned.{info}
h3. GetAsAttachement Operation
<?xml version="1.0" encoding="UTF-8"?>
<tns:getAsAttachmentResponse xmlns:tns="http://petals.ow2.org/components/filetransfer/version-5">
<tns:getAsAttachmentResponse xmlns:tns="http://petals.ow2.org/components/filetransfer/version-5">
<tns:attachment> <tns:file-content>
<tns:filename><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test1.xml"/></tns:filename>
<xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test1.xml"/>
</tns:attachment> </tns:file-content>
</tns:getAsAttachmentResponse>
{code}
{code}
The service might return a Fault when an element in the request is missing or if an IO error occurs.
The service might return fault on following conditions, otherwise an error is returned:
* when the element '{{filename}}' is missing in the request, the fault '{{filenameMissing}}' is returned,
* when the expected file is not found, the fault '{{noFileFound}}' is returned.
* when the element '{{filename}}' is missing in the request, the fault '{{filenameMissing}}' is returned,
* when the expected file is not found, the fault '{{noFileFound}}' is returned.
The available exchange pattern is : *InOut*.
<?xml version="1.0" encoding="UTF-8"?>
<ver:mget xmlns:ver="http://petals.ow2.org/components/filetransfer/version-5">
<ver:mget xmlns:ver="http://petals.ow2.org/components/filetransfer/version-5">
<\!\--1 or more repetitions:-\->
<ver:filename>*.xml</ver:filename>
<ver:filename>myFile.txt</ver:filename>
<ver:filename>myFile.txt</ver:filename>
<ver:filename>*.xml</ver:filename>
<ver:filename>myFile.txt</ver:filename>
<ver:filename>myFile.txt</ver:filename>
</ver:mget>
{code}
{code}
<?xml version="1.0" encoding="UTF-8"?>
<tns:mgetResponse xmlns:tns="http://petals.ow2.org/components/filetransfer/version-5">
<tns:mgetResponse xmlns:tns="http://petals.ow2.org/components/filetransfer/version-5">
<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:myFile.txt"/></tns:filename>
</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:myFile.txt"/></tns:filename>
</tns:attachments>
<tns:file-content><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:test1.xml"/></tns:file-content>
<tns:file-content><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:myFile.txt"/></tns:file-content>
<tns:file-content><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:myFile.txt"/></tns:file-content>
</tns:mgetResponse>
{code}
{code}
The service might return a Fault when an element in the request is missing or if an IO error occurs.
The service might returns error but no fault.
The available exchange pattern is : *InOut*.
{code}
The service might return an ioFault.
The service might return fault on following conditions, otherwise an error is returned:
* when the element '{{filename}}' is missing in the request, the fault '{{filenameMissing}}' is returned.
* when the element '{{filename}}' is missing in the request, the fault '{{filenameMissing}}' is returned.
The available exchange pattern is : *InOut*.
</ver:del>
{code}
{code}
The service does not return a message.
The service does not return a nominal response. It might return fault on following conditions, otherwise an error is returned:
* when the element '{{filename}}' is missing in the request, the fault '{{filenameMissing}}' is returned.
* when the element '{{filename}}' is missing in the request, the fault '{{filenameMissing}}' is returned.
The available exchange pattern is : *InOnly*.
{code}
The service might return an ioFault.
The service might returns error but no fault.
The available exchange pattern is : *InOut*.