Free Web Services - Herong's Tutorial Examples - v2.13, by Herong Yang
questionSearch - Response Message Sample
This section provides a response message sample of questionSearch Web service.
The response of questionSearch Web service can be delivered in "xml", "json", "php" or "rss" message format. It contains a list of questions that match the specified key words. Answers to each question are also included in the response.
Here is the response message of questionSearch in "xml" message format:
HTTP/1.1 200 OK Date: Sat, 23 Jul 2011 03:45:21 GMT P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR ... Vary: Accept-Encoding Connection: close Transfer-Encoding: chunked Content-Type: text/xml; charset=utf-8 Content-Encoding: gzip Cache-Control: private <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <ResultSet xsi:schemaLocation="urn:yahoo:answers http://answers.yahooapis.com/AnswersService/V1/QuestionResponse.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:yahoo:answers"> <Question id="20080113093323AA9hMe1" type="Answered"> <Subject>Beer??????????</Subject> <Content>In Nebraska and California, how old do you have to be to drink beer? Okay...legally.</Content> <Date>2008-01-13 09:33:23</Date> <Timestamp>1200245603</Timestamp> <Link>http://answers.yahoo.com/question/?qid=20080113093323AA9hMe1 </Link> <Category id="396545371">Beer, Wine & Spirits</Category> <UserId>RAKk3XqXaa</UserId> <UserNick>Lucy loved life...</UserNick> <UserPhotoURL> http://l.yimg.com/q/users/15J7BVjAtAAEB9CGaxDHXBw==.medium.jpg </UserPhotoURL> <NumAnswers>4</NumAnswers> <NumComments>2</NumComments> <ChosenAnswer>21</ChosenAnswer> <ChosenAnswererId>OJGOyjA9aa</ChosenAnswererId> <ChosenAnswererNick>Catey</ChosenAnswererNick> <ChosenAnswerTimestamp>1200245797</ChosenAnswerTimestamp> <ChosenAnswerAwardTimestamp>1200765180 </ChosenAnswerAwardTimestamp> </Question> <Question id="20080214220746AAZNpw5" type="Answered"> <Subject>!!!!!!beer?</Subject> <Content>i picked up some Brahma beer and on the side of the box it said for export only prohibited to sell in brasil but its made in brasil???? WTF ??? </Content> <Date>2008-02-14 22:07:46</Date> <Timestamp>1203055666</Timestamp> <Link>http://answers.yahoo.com/question/?qid=20080214220746AAZNpw5 </Link> <Category id="396545371">Beer, Wine & Spirits </Category> <UserId>FhVemmWBaa</UserId> <UserNick>Andy B</UserNick> <UserPhotoURL>http://l.yimg.com/a/i/identity/nopic_48.gif </UserPhotoURL> <NumAnswers>3</NumAnswers> <NumComments>0</NumComments> <ChosenAnswer>That beer is bonded for export only. Which means it is produced specifically for export usually for tax considerations</ChosenAnswer> <ChosenAnswererId>vFRR9ANPaa</ChosenAnswererId> <ChosenAnswererNick>chickie</ChosenAnswererNick> <ChosenAnswerTimestamp>1203055981</ChosenAnswerTimestamp> <ChosenAnswerAwardTimestamp>1203574983 </ChosenAnswerAwardTimestamp> </Question> <Question id="20070903223415AAzx4KU" type="Answered"> <Subject>*********************BeeR?</Subject> <Content>do you like beer and what kind and why?</Content> <Date>2007-09-03 22:34:15</Date> <Timestamp>1188884055</Timestamp> <Link>http://answers.yahoo.com/question/?qid=20070903223415AAzx4KU </Link> <Category id="396546444">Polls & Surveys</Category> <UserId>v7UFHloJaa</UserId> <UserNick>BIG DADDY BEER</UserNick> <UserPhotoURL>http://l.yimg.com/a/i/identity/nopic_48.gif </UserPhotoURL> <NumAnswers>7</NumAnswers> <NumComments>1</NumComments> <ChosenAnswer>LOVE IT. KEYSTONE LIGHT. ITS ALWAYS SMOOTH. </ChosenAnswer> <ChosenAnswererId>quT7AXCRaa</ChosenAnswererId> <ChosenAnswererNick>KING KJORS</ChosenAnswererNick> <ChosenAnswerTimestamp>1188890250</ChosenAnswerTimestamp> <ChosenAnswerAwardTimestamp>1188898597 </ChosenAnswerAwardTimestamp> </Question> <Question id="20080519042752AAqFQmr" type="Answered"> <Subject>Why is beer and alcohol so important in peoples life? </Subject> <Content>A lot of people drink beer everyday. When people want beer they demand it. If theres no beer they will go crazy. Why people think it makes such a difference in what beer they get. It all taste nasty. How could some people like the taste? What is your favorite thing about beer? Why should it be such a huge part of society. People get killed from drunk driving? </Content> <Date>2008-05-19 04:27:52</Date> <Timestamp>1211196472</Timestamp> <Link>http://answers.yahoo.com/question/?qid=20080519042752AAqFQmr </Link> <Category id="396545371">Beer, Wine & Spirits</Category> <UserId>Gy6sTO9Jaa</UserId> <UserNick>tatomuck10</UserNick> <UserPhotoURL>http://l.yimg.com/a/i/identity/nopic_48.gif </UserPhotoURL> <NumAnswers>5</NumAnswers> <NumComments>1</NumComments> <ChosenAnswer> Beer is important in different people's lives for different reasons. Me? Two reasons... 1) it pays the bills; 2) there is nothing better than enjoying the perfect glass of good beer. Many specific beers are overrated (Bud, Miller Lite, Heineken, Stella, Corona, etc.) but beer as a whole is not overrated at all. Rather, beer is often mistakenly looked down upon as the drink of peasants, when it actually was the drink of many kings as well! People who are desperate for it don't know how to enjoy it. People who are desperate for anything don't know how to enjoy those things. I think this is yet another broad generalization. It is important to me because I love beer. I love a great session IPA with friends, an Oktoberfest at a pig roast, a Hefeweizen after mowing the lawn, a Russian Imperial Stout with a great cigar, etc. I love how it's made, how it tastes, how it smells, it's history, our history because of it, etc. Beer is important to society because society was created as a result of the first discovery of beer! Before beer, people were nomads, roaming the deserts and grasslands. roughly 8000 years ago in the Babylonian / Sumerian region, a bowl of grains was left out in the rain. The next day it was bubbling as the yeast became active and fermentation began. Beer was born, and people stopped moving around so much... they wanted to brew beer! The temperature and glassware guidelines, as well as the freshness, is linked to the ultimate enjoyment of a particular beer. Sure, there are times when you may be on a boat or somewhere with less-than-ideal conditions, but the rules exist as more general guidelines to enhance the tasting experience. ... Cheers!</ChosenAnswer> <ChosenAnswererId>ewUQuX4Kaa</ChosenAnswererId> <ChosenAnswererNick>BeerJon</ChosenAnswererNick> <ChosenAnswerTimestamp>1211196964</ChosenAnswerTimestamp> <ChosenAnswerAwardTimestamp>1212586352</ChosenAnswerAwardTimestamp> </Question> ... </ResultSet> <!--ws04.ydn.ac4.yahoo.com compressed/chunked Jul 23 20:45:21 PDT 2011-->
Very interesting questions and answers on beer, right?
Table of Contents
SoapUI - Web Service Testing Tool
Mock Web Services - herongyang.com/Service
"SoapResponder" and Web Service Test Tool
"Calculator" for 4 Integer Operations
DataFlex Web Service for Country Information
LatLonListCityNames - Return Latitudes and Longitudes of US Cities
LatLonListZipCode - Return Latitudes and Longitudes of US Zip Code
TempConvert Web Service for Temperature Conversion
NDFDgenByDay - US Weather Forecast by Day
NDFDgen - US-Weather Forecast for a Single Location
Bitcoin Blockchain Data API (or Explorer)
flickr.interestingness.getList - Get Interesting Photos
NumberToWords - Convert Number in Digits to Words
TitleCaseWordsWithToken - Words to Title Case Format
"PUG SOAP" Web Service for PubChem Database
Discontinued: Currency Converter by kowabunga.net
Discontinued: GetCountries - Get All Countries and Territories
Discontinued: GetCurrencies - Get Currencies from All Countries
Discontinued: GetGMTbyCountry - Get GMT Information of a Given Country
Discontinued: GetISD - Get ISD Phone Code of a Given Country
Discontinued: GetCitiesByCountry - Get Cities by Country
Discontinued: GetInfoByState - Get ZIP Codes of a Given US State
Discontinued: GetAirportInformationByCountry - Get Airport Code by Country
Discontinued: GetGeoIP - Get Country by IP Address
Discontinued: ConvertTemp - Convert Temperature Unit
Discontinued: ChangeLengthUnit - Convert Length Unit
Discontinued: ConvertWeight - Convert Weight Unit
Discontinued: ChangeAreaUnit - Convert Area Unit
Discontinued: Code39 - Generate Bar Code Images in Code 39 Format
Discontinued: GenerateBarCode - Generate Bar Code Images
Discontinued: GetMortgagePayment - Calculate Mortgage Payment
Discontinued: ConversionRate - Get Currency Exchange Rate
Discontinued: GetQuote - Get Stock Quote
Discontinued: GetSunSetRiseTime - Get Sunrise and Sunset Time
Discontinued: GetWeatherByZipCode - Get Weather by ZIP Code in US
Discontinued: getTime - Get the Current Time
►Discontinued: questionSearch - Search Yahoo! Questions and Answers
questionSearch - Usage Description
questionSearch - HTTP Request Sample
►questionSearch - Response Message Sample