376 WCTME: Application Development and Case Study
Create a Web project
We will create a Web project named DelayedFlightsWS that contains a class to
manage flight delay information. The project will be created using the Dynamic
Web Project wizard. You will import a Java file that generates a list of flights
status based in a list of flights.
1. If it is not already running, start the IBM WebSphere Studio Site Developer.
Click Start Programs IBM WebSphere Studio Site Developer 5.1.x.
2. Select File New Other, as in Figure C-1.
Figure C-1 New project creation
3. Select Web Dynamic Web Project and click Next. See Figure C-2 on
page 377.
Appendix C. Sample server-side Web Service 377
Figure C-2 Selection of Dynamic Web Project
4. As in Figure C-3 on page 378, enter DelayedFlightsWS for the Project name,
select Configure advanced options and click Next.
378 WCTME: Application Development and Case Study
Figure C-3 New Dynamic Web project wizard
5. Click New (Figure C-4) for the EAR project and enter DelayedFlightsWSEAR
(formerly DefaultEAR) in the New project name field. Click Finish.
Figure C-4 J2EE Settings Page
The DelayedFlightsWS project has been created. Now we will import a Java file
that contains logic to manage flight status.
1. A Java file named DelayedFlights.java is provided for this sample scenario;
follow these steps to import this Java file:
Appendix C. Sample server-side Web Service 379
a. Select File Import, select File system and click Next. See Figure C-5.
Figure C-5 Importing a file
b. In the Import File system window Figure C-6 on page 380, enter the
following information:
i. From Directory: browse the directory where the file
DelayedFlights.java is located and select it.
Note: You can download the sample code available as additional
materials. See Appendix D, “Additional materials and how to obtain
them” on page 403.
ii. Into folder: enter the following:
DelayedFLightsWS/JavaSource/com/itso/flightInfo.
iii. Select Create selected folders only option.
iv. Click Finish.

Get IBM Workplace Client Technology Micro Edition Version 5.7.1: Application Development and Case Study now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.