MS1905 - Building XML-Based Web Applications
This course provides students with the skills to build a Web application of moderate complexity. Such an
application connects to and retrieves data from a data source, processes Extensible Markup Language (XML) data before sending it to the client, and saves updates from the client back to the database. This course is intended for a wide audience of experienced developers who need to learn XML to create Web applications of moderate complexity. After completing this course, students will be able to list the uses and benefits
of XML in a Web site, create well-formed and valid XML documents, create a schema, use XSL to display XML
data in a Web browser, use XSL to transform XML data into a different XML format, display dynamic XML data
in a Web browser by using data binding and the Document Object Model, use ASP and ADO to read data from a data source and store it as XML, add, delete, update data from the client using XML and save to a database on the server and post XML data to a Web Service using SOAP and retrieve a response.
Module 1: Overview of XML Documents
Structuring Data
Introduction to XML
Creating XML Documents
Grammars and Namespaces
Module 2: Overview of XML Technologies
XML Technologies: The Big Picture
Viewing XML with Style Sheets
Binding HTML to XML
Accessing XML Data Using the DOM
Validating XML
Module 3: Generating XML Data from a Database
Introduction to Generating XML Data
Retrieving Data Using ADO
Returning XML to the Client
Retrieving XML from SQL Server 2000
Lab 3.1: Querying a Database and Returning XML Data
Exercise 1: Creating the Basic Web Site
Exercise 2: Connecting to a Data Source and Executing a Query
Exercise 3: Navigating the ADO Recordset to Return XML to the Browser
Exercise 4: Returning More XML Details for Each Book
Exercise 5: Querying SQL Server to Return All Book Details
Module 4: Displaying an XML Document Using XSLT
Introduction to Transforming XML with XSLT
Creating Output Templates
Filtering and Sorting XML
Programming with XSLT Constructs
Transforming XML Structures
Lab 4.1: Displaying an XML Document Using XSLT
Exercise 1: Creating and Using a Style Sheet
Exercise 2: Creating an HTML Table in the Style Sheet
Exercise 3: Creating Hyperlinks to a Details Page for Each Book
Exercise 4: Displaying Authors on Separate Lines
Module 5: Embedding XML Data in HTML
Accessing Data on the Web
Data Binding
Manipulating the Data Source
Lab 5.1: Embedding XML Data in HTML
Exercise 1: Building an XML Data Island
Exercise 2: Binding an HTML Table to an XML Data Island
Exercise 3: Binding a Nested HTML Table to Repeating XML Elements
Exercise 4: Displaying Data Using Non-Tabular Data Binding
Module 6: Manipulating XML Data on the Client Using the DOM
The DOM View of XML Documents
Accessing DOM Trees
Transforming XML with XSL Programmatically
Lab 6.1: Transforming XML Data on the Client
Exercise 1: Transforming the XML Data
Lab 6.2: Manipulating XML Data on the Client
Exercise 1: Adding a Element to the OrderItem
Exercise 2: Adding the Element to a Shopping Basket Data Island
Exercise 3: Detecting Existing Orders for a Book in the Shopping Basket
Lab 6.3: Displaying XML Data Using the DOM
Exercise 1: Adding the View Order Page
Exercise 2: Building an HTML String
Exercise 3: Calculating an Order Summary
Module 7: Posting XML Data from Client to Server
Preparing XML Data on the Client
Posting Data to the Server
DOM Manipulation on the Server
Receiving the Response on the Client
7.1: Sending XML Packets to the Server
Exercise 1: Creating the XML Data Packet
Exercise 2: Adding the Order Details to the XML Data Packet
Exercise 3: Posting the XML Data Packet to the Web Server
Lab 7.2: Processing XML Packets at the Server
Exercise 1: Receiving the XML Data Packet at the Server
Exercise 2: Processing the XML Data Packet at the Server
Exercise 3: Sending XML Data to the Client
Exercise 4: Updating the Stock Levels
Module 8: Validating XML Using Schemas
Introduction to XML Schema Validation
Creating Simple Datatypes
Creating Complex Datatypes
Creating Advanced XML Schemas
Lab 8.1: Validating XML Using Schemas
Exercise 1: Creating the Validation Environment
Exercise 2: Creating Simple Element and Attribute Declarations
Exercise 3: Creating Complex Types
Module 9: Introduction to SOAP and XML Web Services
Introduction to XML Web Services
Introduction to SOAP
Calling XML Web Services
Using the SOAP Toolkit 2.0
Lab 9.1.: Calling an XML Web Service
Exercise 1: Invoking the Currency Converter Web Service
Exercise 2: Handling the Web Service Response