9.1 Passenger List application

We separate the development into two phases (Figure 9-1). In the phase one, we develop the Web tier that returns a static XML using a servlet and XSLT Processor. In the phase two, we implement a Web service, which returns the passenger list as a query result.

Client

HTML

 

Web Tier

 

Phase 2

Servlet

Java

 

Proxy

XML

Presentation

Data

Data Server

Web

Services

Phase 2

XSLT Processor

XSLT

Data

Presentation Logic

Figure 9-1 Solution overview of the Passenger List application

In the first phase, we start to design the output message (data) format as an XML Schema and output presentation as an XSLT. Then create a servlet which works with them. In the second phase, we generate the Web Service using the XML Schema.

9.1.1 Creating the Web tier

The first part consists in getting the passenger list data from a static XML file and show it as an HTML output page. To do this we need to follow some steps: (See Figure 9-2.)

1. Design the XML Schema

178 The XML Files: Development of XML/XSL Applications Using WebSphere Studio

Page 194
Image 194
IBM Version 5 manual Creating the Web tier, Servlet