Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

The Http RSS binding example shows how to use the HTTP bindings to handle a simple http postRSS bindings to poll RSS feeds for updates. RSS is an XML format designed for sharing web content between sites.

A hypothetical business scenario, which illustrates the HTTP Binding exampleuses RSS, is that of a Department of Public Works Online Project Monitoring System. The head engineer uses this web based system to check the budget availability for a work item. Only if there is sufficient budget for the work item will it be implemented.This example starts at the isBudgetAvailable class of the Department of Public Works Project Monitoring System when it posts a request on URL http://localhost:8912Image Removed. Included in this posted request, is the budget allocation ID of the related work item. The HTTP Server listens on this URL and receives the request. The HTTP Server then forwards the request to the Saaj Binding Component, as this component is capable of communicating to an UrlEndpoint. The UrlEndpoint is the Budget Checking System. The Budget Checking system checks to determin if the funding level is still sufficient for the implementation of the work item, then formulates the appropriate response and sends the response back to Saaj Binding Component. In turn, the Saaj Binding Component sends the response back to HTTP receiver via the normalized message router. The HTTP receiver then sends the message to the http://localhost:8912Image Removed. The message is picked up by the isBudgetAvailable class. Finally, the respone message is printed on the consoleweb site constantly polling RSS feeds for its "What's New" section. Whenever rssPoller detects a change in one of the RSS feeds, rssPoller will send an updated list of URLs to displayNewSites. The displayNewSites component will then auomatically update the web site's "What's New" section accordingly.

The following diagram illustrates this:

Panel
borderColor#ccc
titleDepartment of Public Works Project News Feed Monitoring System
borderStylesolid

Image RemovedImage Added