Professional Documents
Culture Documents
Group 05:
Mustafa Kamal, 871009-5491, mkamal@kth.se
Sharbel Dahlan , 930710-5933, sharbeld@kth.se
2016-02-14
Contents
1 Overview
1.1 Required Tasks . . .
1.1.1 Task 1 . . . .
1.1.2 Task 2 . . . .
1.1.3 Constraints .
1.2 Our Implementation
1.2.1 Architecture .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
1
1
1
1
1
2
2
2 Motivation
1 | Overview
This homework intends to provide practical experience with developing web services,
creating web services clients, and SOAP Processing.
1.1
Required Tasks
1.1.1
Task 1
We are asked to design and implement flight ticket reservation service involving the
following services:
Authorization of customers
Checking availability of a flight (including indirect itineraries)
Checking ticket price of a flight
Booking tickets
Issuing tickets (upon booking)
1.1.2
Task 2
A test client must be developed to test that each web service works.
Moreover, some SOAP messages must be extended with some header using the
@HandlerChain.
1.1.3
Constraints
1. Overview
1.2
Our Implementation
1.2.1
Architecture
In the fiugre, the SkyscanWSApplication represents our web service. The web service is deployed on a Java EE Container. out of its six methods, the bookFlight(),
issueTicket(), and the login() methods were written in WSDL and then imported to
the Java project. On the other side, three JSP-based clients interact with the server to
test its service. The client sends a SOAP request message, then the server responds with
a SOAP response.
When the server is run, SOAP messages are exchanged upon the invocation of each
method. The SOAP request and response for each of the following methods are all
included in the submission of this assignment (two separate XML files for each).
login()
findFlights()
getFlightById()
bookFlight()
checkTickets()
issueTicket()
2 | Motivation
This homework provides an extensive experience on developing web services. By practicing each of WSDL, XSD, and SOAP files, as well as writing JAVA source code, we
have successfully implemented all the required parts discussed in the Overview section.
Therefore, we have met all the requirements for passing this assignment.
Upon success, the Output section at the bottom should show BUILD SUCCESSFUL,
as in Figure 3.2.
2. Expand both the Project and the web services folder, and you will see SkyscanWS
web service. Right-Click on it then click Test Web Service, as shown in Figure 3.3.
Figure 3.4: After clicking Test Web Service, this should appear (fields would initially
be empty).
3. To test one of the methods, like the login, entering the login credentials that were
shown in Figure 3.4, and the login method invocation takes place, with the screen
in Figure 3.5 showing. Notice the SOAP Request and Response messages being
displayed as well.
Figure 3.5: After invoking the login method with successful user authentication/authorization.
Then, the screen from the browser will open, showing the login from the client side,
as shown in Figure 3.7
Then, the rest of the web services can be tested from the clients side, by logging
in through either of the model users sharbel or kamal and a model password
123, then checking the flights, booking a ticket, entering the credit card number
to buy it, and getting the confirmed ticket screen. You will find screens similar to
the ones in Figures 3.8 through 3.11.