Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Section 1: Your First information-rich a... > Importing a Service - Pg. 51

Your First inFormation-rich application 51 importing a Service Let'sfirsthavealookattheData/Servicesfeature.Asyouprob- ably know, loading data from a remote location might require authentication. To start with a simple example, we will load an RSS (Really Simple Syndication) feed, which is public and does not require any authentication. Let's go to the Yahoo Finance RSS Generator at http://finance. yahoo.com/rssindex. This page allows us to dynamically create RSS feeds that include information about the financial situation of a company. We enter the symbol of Adobe (ADBE) and we get different links. See Figure 1.41. We are interested in the RSS type of link, http://finance.yahoo. com/rss/headline?s=ADBE. Let's examine it. We call what is before the "?" the entry point--that is, the root URL that allows the retrieval of news headlines in RSS format. Afterthe"?"thereareparameters,inthiscasejustone.Parameters are in the format of key/value, separated by a"=". In RIAs, when RSS is an XML- based format used to describe items on the Web (e.g., blog posts, videos, etc.). There are different variants. To know more you can consult the corresponding definition on Wikipedia. Note that by means of the Data/Services wizard you can easily set up a data- driven application, with almost no need to study the variants of RSS.