O'Reilly logo

Real World Web Services by Will Iverson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Project 4: Syndicated Search

This chapter looks at a generating an RSS[1] (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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required