def str = '''<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://s...content-available-to-author-only...p.org/soap/envelope/"
xmlns:xsd="http://w...content-available-to-author-only...3.org/2001/XMLSchema"
xmlns:xsi="http://w...content-available-to-author-only...3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:processRequestResponse soapenv:encodingStyle="http://s...content-available-to-author-only...p.org/soap/encoding/"
xmlns:ns1="http://s...content-available-to-author-only...g.com">
<processRequestReturn href="#id0"/>
</ns1:processRequestResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://s...content-available-to-author-only...p.org/soap/encoding/" xsi:type="ns2:NIResponse"
xmlns:soapenc="http://s...content-available-to-author-only...p.org/soap/encoding/"
xmlns:ns2="urn:server.ws.ni.vpg.devoteam.com">
<resultOperation xsi:type="xsd:string">0</resultOperation>
<errorCode xsi:type="xsd:string">0</errorCode>
<errorDescription xsi:type="xsd:string">Operazione eseguita con successo</errorDescription>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>'''
def xml = new XmlSlurper().parseText(str)
def getElementValue = { element -> xml.'**'.find{element == it.name()}?.text() }
def resultOperationValue = getElementValue('resultOperation')
def errorCodeValue = getElementValue('errorCode')
println resultOperationValue
println errorCodeValue