XPath: Namespace prefix has not been declared

Using IntelliJ and a xml soap response, I get a xpath generated that is unique using IntelliJs built in functionality.

Putting this into gatling scala script

`

val scn = scenario(“RuleEngineSimulation”)
.exec(http(“request_0”)
.post("/EngasjementBasisA2A")
.headers(headers_0)
.body(RawFileBody(“RuleEngineSimulation_request.xml”))
.basicAuth(“test234”,“test234”)
.check(xpath("/SOAP-ENV:Envelope/SOAP-ENV:Body/e:HentRisikoOversiktResponse/ef:engasjementOversiktRisikoer/ef:risikogrupper/ef:risikogruppe/ef:risikoer/ef:risiko/ef:partref/text()").saveAs(“partref”)))

`

Running this gives me the following:

`
Namespace prefix ‘SOAP-ENV’ has not been declared

`

Please advice.

Thanks

Magnus

I also have faced the Same issues, here is answer https://stackoverflow.com/questions/56053802/gatling-extract-xpath-values