Hi all,
I want to test webservice soap on gatling, and I wanted to verify the XML response but in vain
I have this response
<soap:Envelope xmlns:soap=“http://schemas.xmlsoap.org/”>
soap:Body
<ns2:retrieveParamResponse xmlns:ns2=“http://ws.oob.com”>
000
Opération réussie
ACTIVATED
</ns2:retrieveParamResponse>
</soap:Body>
</soap:Envelope>
I tested with the xpath method it may not work , I get an error message
.check(
xpath("/soap:Envelope/soap:Body/ns2:retrieveParamSseByIdResponse/return/returnCode",
List(“soap” → “http://schemas.xmlsoap.org/soap/envelope/”,
"ns2" → “http://ws.oob.bfi.awl.com/”))
.is(“000”))
Error msg:
failed: xpath((/soap:Envelope/soap:Body/ns2:retrieveParamSseByIdResponse/return/returnCode,List((soap,http://schemas.xmlsoap.org/soap/envelope/), (ns2,http://ws.oob.bfi.awl.com/)))).find.is(000) failed, could not prepare: Could not parse response into a DOM Document: SaxonApiException: I/O error reported by XML parser processing null: Octet 2 de la séquence UTF-8 à 3 octets non valide
Can you help me pleaaaaaase ???
Cdt,
Cherkaoui khadija