You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

The Http binding example shows how to use the HTTP bindings to handle a simple http post.

A hypothetical business scenario, which illustrates the HTTP Binding example, is that of a Department of Public Works Project Monitoring System that needs to check the budget availability for a work item before proceeding with the actual implementation. 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:8912. Included in this request is the budget allocation ID of the corresponding work item. The Http Server listens on this URL and receives the request. Http Server then forwards the request to the Saaj Binding Component as this component is capable of communicating to a UrlEndpoint. The UrlEndpoint is the Budget Checking System. The Budget Checking system checks if funding is still sufficient for the implementation of the work item and 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:8912. The message is picked up by the isBudgetAvailable class. The message is printed on the console.

The following diagram illustrates this:

Department of Public Works Project Monitoring System

  • No labels