Validate the Request Content

Using transformation (SLT) file to validate the request content.

You can use XPath expressions in the parse step XSLT transformation. Using the XPath expressions, you can apply content validation logic to the request payload message. When the request fails a validation check, an appropriate error code and associated error message can be set in the parse step XSLT transformation.

If the parse step XSLT transformation returns an error code, the transaction is terminated and an error response is generated and returned to the client. This functionality allows users to create parse XSLT to return the error codes and descriptions that are expected by the API of which it is a part. Then if an error XSLT is configured for the operation it is called, and any API-specific error document can be created.