IBM Version 5 Universal Remote User Manual


 
Contents v
7.2.1 Create an XML file from a DTD file . . . . . . . . . . . . . . . . . . . . . . . . . 147
7.2.2 Create an XML file from an XSD file . . . . . . . . . . . . . . . . . . . . . . . . 148
7.2.3 Create DTD/XSD files from XML. . . . . . . . . . . . . . . . . . . . . . . . . . . 149
7.3 Generate a HTML from an XSD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
7.4 JavaBeans from DTD/XSD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
7.5 Generate XML/XSL from JavaBeans . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
7.6 Generate XML/XSL from HTML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
7.6.1 Preparing the HTML file for generation. . . . . . . . . . . . . . . . . . . . . . 157
Part 3. XML application development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Chapter 8. WebSphere and XML approaches . . . . . . . . . . . . . . . . . . . . . . 163
8.1 XML in Application development. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
8.2 Web services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
8.3 Passenger List application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
8.3.1 Solution Outline. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
8.3.2 XML in this application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
8.3.3 Technical implementation overview . . . . . . . . . . . . . . . . . . . . . . . . 169
8.4 Enterprise JavaBeans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
8.5 The Customer Registration application . . . . . . . . . . . . . . . . . . . . . . . . . . 174
8.5.1 XML in this application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
8.5.2 Technical overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Chapter 9. Developing XML Web services . . . . . . . . . . . . . . . . . . . . . . . . 177
9.1 Passenger List application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
9.1.1 Creating the Web tier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
9.1.2 Create the Airline simple project . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
9.1.3 Create the Travel Web project . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
9.1.4 Design the XML Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
9.1.5 Generate XML file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
9.1.6 Design an output page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
9.1.7 Testing the XSL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
9.1.8 Developing the servlet. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
9.1.9 Test the passenger list application . . . . . . . . . . . . . . . . . . . . . . . . . 191
9.1.10 Compiling XSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
9.2 Creating a Web service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
9.2.1 Create the database tier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
9.2.2 Generate DTD file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
9.2.3 Loading DTD into XML Extender . . . . . . . . . . . . . . . . . . . . . . . . . . 195
9.2.4 Creating DAD file using RDB to XML mapping . . . . . . . . . . . . . . . . 196
9.2.5 Create the Web Service from DADX file . . . . . . . . . . . . . . . . . . . . . 199
9.2.6 Test the Web Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
9.2.7 Modify passenger list application to use the Web Service . . . . . . . 208