Given the below SOAP response, how would I use XPATH to do some testing/validation of the content of the response? NOTE: I am using RunScope to test our API.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetValidDataExtractResponse xmlns="http://some.namespace">
<GetValidDataForExtractResult>
<long>1001</long>
<long>1002</long>
</GetValidDataForExtractResult>
</GetValidDataExtractResponse>
</soap:Body>
</soap:Envelope>
I can get a valid value back by using: /soap:Envelope/soap:Body But, this doesn't get me very far beyond "does something exist in the body". I'd like to be able to determine if the "GetValidDataExtractResponse" node contains something, also if the "etValidRentalUnitIdsForExtractResult" node contains X number of items or if that node contains certain values.