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

Compare with Current View Page History

Version 1 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 post a request on url http://localhost:8912. Included in this request is the budget allocation id of the corresponding work item. The Http Server which listens to this url receives the request. It then forwards the request to the Saaj Binding Component as this component is capable of communicating to a UrlEndpoint which in this case is the Budget Checking System. The Budget Checking system checks if funding is still sufficient for the implementation of the work item and formulate the appropriate response. It then sends the response back to Saaj Binding Component which in turn sends it back to Http receiver. The Http receiver then sends the message to the url http://localhost:8912 which in turn is picked up by the isBudgetAvailable class. Response is printed on the console.

The following diagram illustrates this:

Online Ticket Reservation System

  • No labels