Petals-BC-REST 2.3.0+

compared with
Current by Christophe DENEUX
on Mar 14, 2022 16:36.

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

Changes (1)

View Page History
{tip}
If the service response has no XML payload, the XML payload of the service request is used to be transformed instead of the service response XML payload.

Several XSL parameters are set to be used in the XSL transformation:
* each URI parameter is available without namespace,
* the component placeholders are available as parameters from namespace '{{http://petals.ow2.org/bc/rest/xsl/param/output/1.0/placeholders}}'. The parameter name is the placeholder name, and its value the placeholder value,
* in case of error response, two additional parameters are set:
** '\{http://petals.ow2.org/bc/rest/xsl/param/output/1.0/placeholders\}error-message' that contains the error message,
** '\{http://petals.ow2.org/bc/rest/xsl/param/output/1.0/placeholders\}error-stack-trace' filled with the error stack trace.
{tip}
** the sub-element '{{http-response}}' defines the transformation to apply if the condition matches to generate the HTTP REST response: