Assignment title: Information


Programming Assignment 2 Preparation: Read the following documentation to learn how to develop and host a web service using NetBeans IDE and Glassfish; how to create, customize, and deploy a SOAP message handler to view and edit a SOAP header. 1. Creating a Web Service in Java using NetBeans IDE.pdf 2. Create an operation with complex data type for output in Java.pdf 3. SOAP Header Handler.pdf Requirement: In this assignment, you are required to develop and host a web service that provides at least two operations; a client application that invokes the operations, and a coordination handler from the service side that enforces the correct order of the invocation. It is required that the web service has a backend database and at least one of the operations is to allow users to query the database. Example: Service side: develop a web service that provides the following two operations: 1. Query the list of products by providing the keywords a. Input: a product name, such as “Macbook Pro 15” b. Output: the detailed of the product, such as the product id, name, price, brand name, and model number. 2. Place an order a. Input: the product id, number of products, account b. Output: feedback on the order, successful if the product id is valid and the payment amount does not exceed the credit line of the account (stored in the database), failed otherwise. The coordination protocol: A user needs to first query the product and then place an order. It is not allowed to place an order without performing a query before. Client side: develop a java application that performs two rounds of web service invocation. 1. First round: the client first places an order. This request will be rejected by the coordination handler at the service side as the invocation order violates the coordination protocol. 2. Second round: the client first performs a query, and then places an order using the information returned by the query. The coordination handler will accept the requests as this conforms to the protocol and the client will get the response from the service. Required deliverables: 1. A document that describes the design of the web service, coordination protocol, and the client side application. The screenshots of testing the web service and running the client application are required. 2. A readme file that describe how to install and test the service and the client application. 3. The entire project packages for the web service and the web service client, including the .jar files, source code files, data files, configuration files, and etc. Submission Information:1. Zip the files to be submitted and name the zip file as $lastname_$firstname_A2.zip. No .rar file will be accepted. 2. Submit the zip file to the dropbox folder by Mar. 31. Note: 1. The coordination handler must be implemented at the service side. 2. You are allowed to discuss and learn in groups. However, you must design, develop, and submit the entire assignment by yourself. If there are two submissions having the exact same design, which is not very likely if working independently, the students will be asked to revise the design and resubmit the work. 3. Plagiarism checking will be performed to all the submission in this course.