ujas_doshi
15 years agoOccasional Contributor
Xpath match not working
Hi,
I am trying to use xpath match. It is not working.
THis is the response.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:checkAuthorizationCompleteResponse xmlns:ns1="urn:wlp:cas:contract">
<return id="ac79b61f-a057-4179-8593-5dc4cc395826" xmlns="urn:wlp:cas:contract">
<statusCode>OK</statusCode>
<informationMessage>Checked</informationMessage>
<authorizationReference>210</authorizationReference>
<responseCode>ACCEPTED</responseCode>
</return>
</ns1:checkAuthorizationCompleteResponse>
</soap:Body>
</soap:Envelope>
FOr assertion, I am trying to use following Xpath query. (in Xpath expresssion window)
declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/'; //Obtained using 'Declare'
declare namespace ns1='urn:wlp:cas:contract'; //Obtained using 'Declare'
declare namespace ns11='urn:wlp:cas:contract'; //Obtained using 'Declare'
//ns1:checkAuthorizationCompleteResponse/return/statusCode
******************
After this, when I click on ,Select from current',
it gives the error "No match in current response"
(I am trying to attach a screenshot for more clarity)
THanks in advance for your help,
Ujas Doshi
I am trying to use xpath match. It is not working.
THis is the response.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:checkAuthorizationCompleteResponse xmlns:ns1="urn:wlp:cas:contract">
<return id="ac79b61f-a057-4179-8593-5dc4cc395826" xmlns="urn:wlp:cas:contract">
<statusCode>OK</statusCode>
<informationMessage>Checked</informationMessage>
<authorizationReference>210</authorizationReference>
<responseCode>ACCEPTED</responseCode>
</return>
</ns1:checkAuthorizationCompleteResponse>
</soap:Body>
</soap:Envelope>
FOr assertion, I am trying to use following Xpath query. (in Xpath expresssion window)
declare namespace soap='http://schemas.xmlsoap.org/soap/envelope/'; //Obtained using 'Declare'
declare namespace ns1='urn:wlp:cas:contract'; //Obtained using 'Declare'
declare namespace ns11='urn:wlp:cas:contract'; //Obtained using 'Declare'
//ns1:checkAuthorizationCompleteResponse/return/statusCode
******************
After this, when I click on ,Select from current',
it gives the error "No match in current response"
(I am trying to attach a screenshot for more clarity)
THanks in advance for your help,
Ujas Doshi