extracting a value from a soap response

I have this response to a request:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <e:HentRisikoOversiktResponse xmlns:e="urn:stb:forsikring:tjenester:engasjement"> <ef:engasjementOversiktRisikoer xmlns:ef="urn:stb:forsikring:engasjement"> <ef:risikogrupper> <ef:risikogruppe> <ef:beskrivelse>growy</ef:beskrivelse> <ef:risikoer> <ef:risiko> <ef:partref>0005721478</ef:partref>

How could I use a check to save the partref value here?

I tried something like:

.check(xpath("//Body/HentRisikoOversiktResponse/engasjementOversiktRisikoer/risikogrupper/risikogruppe/risikoer/risiko/partref").saveAs("branchID"))

But it does not work.

I get this error:

`

regex(messageId": "([0-9][a-b][A-B])).find(0).exists, found no 1 (100,0%)
thing
`

Is the path constructed wrong?

BTW: there are several nodes of type “risiko” in the response so i might need to specify that it is the first node?

Thanks!

Magnus

could help me here?