Policy Repository: Substring

Document created by dasjo02 Employee on Mar 15, 2019Last modified by dasjo02 Employee on Mar 15, 2019
Version 3Show Document
  • View in full screen mode

A simple policy that allows extraction of a substring


To use:

 

  1. Open policy manager and create a test service
  2. Download the attached file and import the XML file into your new service
  3. Modify these variables as needed:
    STRING: The string to extract the substring from
    START: The starting position
    LEN: Length of characters to extract
  4.  Hit the endpoint via your desired user agent (i.e: browser, SOAPUI, etc).

 

Sample output

 

Full string: This is a test string  
Start Position: 1
Length: 4
Result: This
1 person found this helpful

Attachments

Outcomes