Forum Discussion

Nishi's avatar
Nishi
Contributor
13 years ago

using XPath assertion in SoapUI free version

I have been trying to get the syntax for X-Path to use in assertions.

I had given the following in X-Path expression (basically trying it for sample screen shots on smartbear site)

declare namespace wsr2w='http://research.sun.com/wadl/2006/10/r2w/services/rest/rwSearch/doSearch/';
//wsr2w/searchResponse[1]

Here it does not like namespace declaration and fails to recognize second line - it is simply appending it as
'http://research.sun.com/wadl/2006/10/r2w/services/rest/rwSearch/doSearch/';//wsr2w/searchResponse[1]

Totally clueless what it is expecting at this point.

Expected Result:

<wsr2w:searchResponse>
<totalSize>1</totalSize>
</wsr2w:searchResponse>

Could someone refer to me a site where I can understand and learn about XPath notation required for SoapUI?

Thanks,

11 Replies