Assignment 6CMPUT 410 (Fall 2004)
Due Date (by e-mail): November 22th, 2004 (16:59)
Objectives
You are asked to implement a small application using web services. A client application would send a request (query) to a server application (web service) in XML and receive the answer in XML. A user interfaces with the client application via a browser. A simple HTML form is used to enter a query, basically a price range, requesting a list of hotels offering rooms in the given price range. A Java servlet would receive the form data and submit a request in XML to another Java servlet playing the role of the web service. This second servlet accesses a database of hotels. The answer is sent in XML to the first servlet which in turn generates a web page with the list of hotels. Basically, you need to have two java servlets: one receiving the query from a browser and generating a list of hotels in a table, and the second one accessing a database. The first servlet has no database but communicates with the second sevlets via web services. There is only one service required: GetHotelByPrice will query for the hotel list in the database with certain price specifications. The hotel list with the prices can be found in this XML file. Use this file to populate your database. The web service is described by this WSDL.
This application is a very simple version of your Hotel search
capability for the term project.
The data flow is as follows:
![]() First, you should implement a simple form that allows to enter the
price range. The interface should look like the following:
After the client servlet receives the web service response, it should generate a table to show the hotels.
An example for price range $100-$200 can be see below: IMPORTANT: Remember that the esthetics are not important in this assignment. Functionality is important.DeliverablesThis assignment is to be submitted via email to your TA. Send only one tar file that contains all that you are submitting.How to create your tar file:
| |
![]() ![]() |
---|