Search

1 to 10 of 17
Sort by

Library Entry
Policy Repository: Substring

A simple policy that allows extraction of a substring To use: Open policy manager and create a test service Download the attached file and import the XML file into your new service Modify these variables as needed: STRING : The string to extract the substring from START : The...

202498.zip


Library Entry
Policy Repository: Date Validation

Sometimes it may be necessary to perform date validation to confirm invalid data is not supplied. For example, you may need to prevent bad data like February 52, 2018 from being sent to a back end server. The attached sample policy retrieves a data from a JSON Payload and validates it. This...

200594.zip


Library Entry
Policy Repository: Sanitize JSON Body of special characters

Sometimes it may be necessary to remove special, non alpha-numeric characters, from JSON values. This policy uses a combination of RegEx and JSON path expressions to accomplish this. I.e: ( "value": "This is a test message ' with special characters $30 " ) To use: 1) Open Policy...

198742.zip


Library Entry
Policy Repository: HTTP Redirect

A simple policy to perform an HTTP redirect. This uses an 'Return Template Response to Requestor' assertion to manipulate the HTTP status code and the 'Manage Transport Properties/Headers' assertion to add the location header.

194733.zip




Library Entry
Add or Remove XML Element(s) Assertion sample policy

A sample policy using the 'Add or Remove XML Element(s)' Assertion. Instructions: To test this policy: 1. Create a testing endpoint on your Gateway, i.e: /addXml , /removeXml 2. Import the attached policy into the respective endpoint 3. Send one of the sample messages below to the Gateway...

177940.zip