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