Petals-BC-REST 1.1.0+

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

Changes (4)

View Page History
</rest:on-http-status>
</rest:operation>
<rest:operation name="edm:archiver">
<rest:http-method>POST</rest:http-method>
<rest:http-body-type>MULTIPART_FORMDATA</rest:http-body-type>
<rest:uri>http://localhost:8080/library/{library}/document</rest:uri>
<rest:xpath-param name="library">//*[local-name()='library']</rest:xpath-param>
<rest:form-data name="file" as-attachment="true">
<rest:extracted-by-xpath>
substring-after(//*[local-name()='document']/*[local-name()='Include']/@href, 'cid:')
</rest:extracted-by-xpath>
</rest:form-data>
<rest:on-http-status code="200">
<rest:xsl>archiver-200.xsl</rest:xsl>
</rest:on-http-status>
<rest:on-http-status code="404">
<rest:xsl as-fault="true">unknownLibrary-as-fault.xsl</rest:xsl>
</rest:on-http-status>
</rest:operation>
</rest:mapping>
</jbi:consumes>
* JSON: the HTTP body is filled with the incoming XML payload converted into JSON,
* POST_QUERY_STRING:
* ATTACHMENTS: _Not supported_. | - | {center}Yes{center} |
* MULTIPART_FORMDATA: A multi-part HTTP request is built. Each part will be defined using '{{form-data}}'. | - | {center}Yes{center} |
| uri | URI template of the external resource.
Value of substitutable parameters are retrieved from XPath expressions given by '{{xpath-param}}', or retrieved from JBI message properties. | - | {center}Yes\*{center} |
* the sub-element '{{xsl}}' is the XSL generating the content of the reply to return,
** the reply type (fault or normal response) is defined according to the value of the attribute '{{as-fault}}'. The default reply type is a normal reply. | - | {center}No{center} |
| form-data | Define the form data to put in a part of a multi-part HTTP request:
* the attribute '{{name}}' define the name of the form data,
* the sub-element '{{extracted-by-xpath}}' defines the XPath expression applied on the incoming request to compute the value to set into the form data. If the result of the XPath expression is the content identifier of an attachment of the incoming request, the attribute '{{as-attachment}}' drives the processing of the attachment: if '{{true}}', the attachment content will be put into the form data, otherwise the content id will be put. If you want to put the XPath result as a form field value, use the value '{{false}}'. | - | {center}No{center} |
| wadl | WADL which defines the partner service | - | {center}Yes\*{center} |
| wsdl2 | WSDL2 which defines the partner service | - | {center}Yes\*{center} |