First of all, I think your response body , as you wrote it, is invalid: you should have a SOAP:Envelope root.
Let say your body is:
<SOAP:Body>
<constructor language="DBSQL">
<query>SELECT BRANCH_ID FROM XDS_BRANCH WHERE NAME = 'CWS-TEST8'
</query>
</constructor>
<tuple>
<old>
<XDS_BRANCH>
<BRANCH_ID>ABCF1256781</BRANCH_ID>
</XDS_BRANCH>
</old>
</tuple>
</dataset>
</QueryAdminDataResponse>
</SOAP:Body>
First, as you would do with any XPath engine, you have to bind the namespaces used in your expression. In Gatling, you do it this way:
Note that starting from QueryAdminDataResponse, you use a default namespace, so you have to bind it too!
If you want to use the whole path starting from root, you can write:
Otherwise, you can use a simplified one:
Then, please note that you're actually performing an "exists" (default) check, so you're saving a boolean. What you want is find or findAll depending on your needs:
Cheers,
Stéphane