It allows users to perform a particular Webservice.
RESTful Web Service
It allows users to execute RESTful Web Services with a single test command and store results in a variable.
SOAP Web Service
It allows users to execute SOAP Web Services with a single test command and store results in a variable.
It allows users to determine meaningful information from a JSON or an XML message which can be captured as a response to an API or from a file.
JSON Message
It allows users to determine any JSON string or the JSON string which is returned as a result of REST Web Service test command.
Example
"store": {
"book": [
{
"category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95
},
{
"category": "fiction",
"author": "Evelyn Waugh",
"title": "Sword of Honour",
"price": 12.99
},
{
"category": "fiction",
"author": "Herman Melville",
"title": "Moby Dick",
isbn": "0-553-21311-3",
"price": 8.99
},
}
store.book[*].author expression will fetch all the authors of all books.
book[2] expression will fetch the third book from the list.
book[(@.length-1)] expression will fetch the last book.
XML Message
It allows users to extract some values from an XML Message or a File. XML messages can be the result of SOAP Web Services responses or users can also upload an XML file.
Example
< soap:Envelopexmlns: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 >
< GetCityForecastByZIPResponse xmlns= "http://ws.cdyne.com/WeatherWS/" > [^]
< GetCityForecastByZIPResult >
< Success > true < /Success >
< ResponseText > City Found < /ResponseText >
< State name="a" > FL < /State >
< City > Mid Florida < /City >
< WeatherStationCity > Orlando < /WeatherStationCity >
< ForecastResult >
< Forecast >
< Date > 2014-08-18T00:00:00 < /Date >
< WeatherID > 2 < /WeatherID >
< Desciption > Partly Cloudy < /Desciption >
< Temperatures >
< MorningLow/ >
< DaytimeHigh > 95 < /DaytimeHigh >
< /Temperatures >
< ProbabilityOfPrecipiation >
< Nighttime/ >
< Daytimetime > 30 < /Daytimetime >
< /ProbabilityOfPrecipiation >
< /Forecast >
< /ForecastResult >
< /GetCityForecastByZIPResult >
< /GetCityForecastByZIPResponse >
< /soap:Body >
< /soap:Envelope >
XPath :
Get State value : //GetCityForecastByZIPResult/State/text()
Get State node : //GetCityForecastByZIPResult/State
Get list of forecast node ://GetCityForecastByZIPResult/ForecastResult/Forecast
Count No. of forecast node in message : count(//GetCityForecastByZIPResult/ForecastResult/Forecast)
Get list of nodes where DayHighTime is 95 : //Temperatures[DaytimeHigh=95]
Get name attribute value of State node : //State/@name
This website uses Cookies to improve site’s functionality & provide you with better browsing experience. Detailed information on the use of cookies on this website, and how you can decline them, is provided in our Cookie Policy. If you don't agree, kindly disable cookies from browser settings.