Skip to main content

Groovy Script

Explanation

This script performs the following operations:
  1. XML Parse: SOAP message coming from response body is parsed
  2. Element Check: Value of specified element is checked
  3. Node Deletion: If element is empty, node is deleted
  4. Value Change: If element value is 1 character, “00” is added at the beginning
  5. XML Serialize: Updated XML is serialized
This script should be run on the response line (Response Policy) because it uses the responseBodyTextToClient variable.