Groovy Script
Explanation
This script performs the following operations:- SOAP Message Preparation: SOAP Envelope, Header and Body are created
- HTTP Request: SOAP message is sent with HTTP POST request
- Response Parse: Incoming SOAP response is parsed
- Token Extraction: Token value is extracted from response
- Adding to Header: Token value is added to header
This script should be run on the request line (Request Policy) because it uses the
requestHeaderMapToTargetAPI variable.
