Petals-BC-REST 2.0.0+

Version 1 by Christophe DENEUX
on Jul 01, 2020 15:32.

compared with
Current by Christophe DENEUX
on Jul 01, 2020 15:34.

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

Changes (2)

View Page History
** the attribute '{{order-id}}' permits to order condition evaluations,
** the attribute '{{process-http-response-as}}' defines how the HTTP response body must be processed. By default, the body content-type is auto-detected according to the content-type of the HTTP response. Possible values are:
*** {{auto}} (default value): The body content type is auto-detected from the HTTP response content-type,
*** {{xml}}: The body contains XML that will be put be put in the service provider response as a XML payload,
*** {{json}}: The body contains JSON that will be put be put in the service provider response as a XML payload,
{tip}
* the sub-elements '{{otherwise-out}}', '{{otherwise-fault}}' or '{{otherwise-error}} define the default transformation to apply when no condition transformation matches the HTTP body response. The result of the transformation will be used as OUT response, fault or error. Only one default transformation can be defined:
** the attribute '{{process-http-response-as}}' defines how the HTTP response body must be processed. By default, the body content-type is auto-detected according to the content-type of the HTTP response. Possible values are:
*** {{auto}} (default value): The body content type is auto-detected from the HTTP response content-type,
*** {{xml}}: The body contains XML that will be put be put in the service provider response as a XML payload,
*** {{json}}: The body contains JSON that will be put be put in the service provider response as a XML payload,
*** {{attachment}}: The body will be put in the service provider response as an attachment.
** the sub-element '{{transformation}}' defines the transformation to apply if the condition matches. Now, only XSL transformations are supported through the sub-element '{{xsl}}'. The available XSL parameters available are the same as the ones for '{{out}}', '{{fault}}' and '{{error}},
* if no default transformation is defined: