I am trying to retrieve a value from a XML response but it prints nothing.Please note that I am using SOAP UI to test the webservice and has written a simple piece of code to retrieve the policyid from the below response xml.
Below is the code; if you see the second line of screenshots of the, it prints EMPTY value.
I tried different options suggested in various websites but nothing helped
Groovy Script
def response = context.expand( '${XMLService#Response}' )
def xml = new XmlSlurper().parseText(response);
log.info xml
log.info(xml.EQuoteResponse.Policy.PolicyId.text())