questionSearch - Response Message Sample

This section provides a request 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 &amp; 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 sead for export only  prohidited 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 &amp; 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 
ususallly 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 &amp; 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 &amp; 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 Sat Jul 23 20:45:21 PDT 2011-->

Very interesting questions and answers on beer, right?

Last update: 2011.

Table of Contents

 About This Book

 SoapUI - Web Service Testing Tool

 SOAP Web Service and SoapUI

 REST Web Service and SoapUI

 GetCountries - Get All Countries and Territories

 GetCurrencies - Get Currencies from All Countries and Territories

 GetGMTbyCountry - Get GMT Information of a Given Country

 GetISD - Get ISD Phone Code of a Given Country

 GetCitiesByCountry - Get Cities by Country

 LatLonListCityNames - Return Latitudes and Longitudes of US Cities

 GetInfoByState - Get ZIP Codes of a Given US State

 GetAirportInformationByCountry - Get Airport Code by Country

 GetGeoIP - Get Country by IP Address

 ConvertTemp - Convert Temperature Unit

 ChangeLengthUnit - Convert Length Unit

 ConvertWeight - Convert Weight Unit

 ChangeAreaUnit - Convert Area Unit

 Code39 - Generate Bar Code Images in Code 39 Format

 GenerateBarCode - Generate Bar Code Images

 GetMortgagePayment - Calculate Mortgage Payment

 ConversionRate - Get Currency Exchange Rate

 GetQuote - Get Stock Quote

 getTime - Get the Current Time

 GetSunSetRiseTime - Get Sunrise and Sunset Time

 GetWeatherByZipCode - Get Weather by ZIP Code in US

 NDFDgenByDay - US Weather Forecast by Day

 NDFDgen - US-Weather Forecast for a Single Location

questionSearch - Search Yahoo! Questions and Answers

 questionSearch - Usage Description

 questionSearch - HTTP Request Sample

questionSearch - Response Message Sample

 flickr.interestingness.getList - Get Interesting Photos

 Hotwire - Get Travel Ticker Deals

 Outdated Tutorials

 References

 PDF Printing Version