This chapter looks at a generating an RSS (most commonly, Really Simple Syndication) feed using the results obtained from a Google search. In a sense, you can say that this is an example of a web service gateway. RSS offers a translation from a SOAP web service to a syndication feed more accessible via a variety of content management systems and news aggregators.
In brief, RSS is a simple XML format for describing a series of entries, with links back to full stories. Popular uses include providing summaries of news stories and also personal weblog entries, but an increasing number of systems are offering feeds for other purposes, such as a feed containing status information on a remote system. In any event, a variety of software tools—both desktop and web-based—have evolved for watching RSS feeds.
One of the best uses for RSS is monitoring search results from sites such as Google (http://www.google.com). Many people take their Google search results very seriously. There are businesses that depend on their Google rankings for customer traffic, or as a metric for their web-site success and popularity. For people that spend a lot of time worrying about this, they may have several search terms they wish to monitor. By providing Google search results as RSS feeds, users can monitor their Google search results using a RSS aggregator.
The sample application built in this chapter shows how to leverage the existing Google APIs to provide RSS feeds. ...