Contents Overview 1 Lesson: Common Business Problems 3 Lesson: XML in the .NET Framework 7 Review 14 Module 1: Introduction to XML in the .NET Framework... Instructor Notes After co
Trang 1Contents
Overview 1
Lesson: Common Business Problems 3
Lesson: XML in the NET Framework 7
Review 14
Module 1:
Introduction to XML in the NET Framework
Trang 2Information in this document, including URL and other Internet Web site references, is subject to change without notice Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place or event is intended or should be inferred Complying with all applicable copyright laws is the responsibility of the user Without limiting the rights under copyright, no part
of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted
in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property
©2002 Microsoft Corporation All rights reserved
Microsoft, MS-DOS, Windows, Windows NT, Win32, Active Directory, ActiveX, BizTalk, IntelliSense, JScript, Microsoft Press, MSDN, PowerPoint, SQL Server, Visual Basic, Visual C#, and Visual Studio are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries
The names of actual companies and products mentioned herein may be the trademarks of their respective owners
Trang 3Instructor Notes
After completing this module, students will be able to:
Explain how Extensible Markup Language (XML) in the Microsoft® NET Framework helps provide solutions to common business problems
Discuss how Microsoft’s implementation of World Wide Web Consortium (W3C) standards for XML provides a framework for XML solutions to business problems
Diagram XML support in the NET Framework
To teach this module, you need the following materials:
Microsoft PowerPoint® file 2663A_01.ppt
2663A_ataglance.htm
To prepare to effectively teach this module:
Read all of the materials for this module
Practice using the interactive Flash animation
This module contains an interactive Flash animation that shows the relationship
of trading partners with regard to XML and other data they share The animation contains a slider that you use to scroll horizontally left or right In addition, it contains buttons you click to display text that explains business problems and XML solutions This animation is discussed in detail in the following section
Trang 4iv Module 1: Introduction to XML in the NET Framework
How to Teach This Module
This section contains information that will help you to teach this module
Course at a Glance
This topic provides an overview of Course 2663 There is a link at the bottom
of the slide that you can click to display an htm file in Microsoft Internet Explorer This file provides a brief overview of the course, the programming categories and tasks covered in the course, and the major XML base classes in the NET Framework
Lesson: Common Business Problems
This section describes the instructional methods for teaching each topic in this lesson
Use this animation to provide an overview of the course This interactive
animation begins with a brief display of the entire process Click the ZOOM IN
button in the lower right corner of the display The animation then zooms in on the featured company, Northwind Traders, and the button changes to read
OVERVIEW You can move between the overview and the zoomed-in view at
any time At the bottom of the display is a slider that makes each portion of the
process active You can click the more buttons next to each application or
component to display explanations of that application or component
You move the slider one step to the right to see how Northwind Traders uses Web applications in transactions with its customers Move the slider further to the right to see how Northwind Traders customers interact with the Web applications and also interact directly with Northwind Traders Explain that the Web applications provide a user interface for Northwind Traders customers You move the slider to the left to see how Northwind Traders uses the XML Web services that it maintains for its suppliers Move the slider further to the left to see how the suppliers interact with the XML Web services The XML Web services allow applications to interact with each other, so there is no user interface
Notice a series of boxes that are labeled Manipulate, Transform, Query, and
so on Each box indicates that a module of the course covers the interactions closest to the box
This topic provides a brief overview of the common business problems faced by businesses, particularly those that do business over the Internet
Note that this topic does not discuss solutions to the problems It states the problem in a way that sets the stage for the remaining modules in the course
Trang 5Lesson: XML in the NET Framework
This section describes the instructional methods for teaching each topic in this lesson
This topic explains the W3C standards that form the basis of XML support in the NET Framework and lists the Uniform Resource Locator (URL) for each standard’s specification This topic sets up the rest of the course The lessons and modules that follow show the use of NET Framework classes that support these standards
This topic shows the NET Framework namespaces and base classes that implement the W3C standards This is a good time to check the class’s understanding of namespaces and provide a brief overview if necessary
This topic describes how to use the classes that derive from XML base classes
in the NET Framework The base and derived classes that this topic describes are featured in the rest of this course This might be a good time to check how much your students know about Document Type Definitions (DTDs) and various types of schemas
This topic compares and contrasts Microsoft XML Core Services (MSXML) 4.0 and NET Framework classes The point to stress is that MSXML 4.0 is for use in Component Object Model (COM) and Document Object Model (DOM) environments and NET Framework classes are for use in NET managed environments Explain that each has its uses
This topic explains how you use XML to help deal with security concerns Explain that XML alone cannot guarantee security and should be a part of a company-wide security solution
Microsoft Official Curriculum (MOC) courseware
Lab Setup
This module contains no labs
Lab Results
This module contains no labs
What Are the W3C
Standards in the NET
Trang 7Overview
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
This module introduces Extensible Markup Language (XML) in the Microsoft®
.NET Framework XML is a standards-driven technology that is ideal for applications that use the Internet Microsoft’s implementation of World Wide Web Consortium (W3C) standards ensures that applications you develop with XML in NET will successfully communicate with other W3C-compatible applications
After completing this module, you will be able to:
Explain how using XML provides solutions to common business problems
Discuss how Microsoft’s implementation of W3C standards for XML provides a framework for XML solutions to business problems
Diagram XML support in the NET Framework
Introduction
Objectives
Trang 82 Module 1: Introduction to XML in the NET Framework
Course at a Glance
Reading XML (Modules 2 and 3)
Course at a glance
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
In an Internet environment, data can come from many sources and in many formats XML Web services and other applications that you develop by using the NET Framework help solve the problems of working with data in many formats from many sources Each module in this course deals with a different aspect of creating XML-based applications by using the NET Framework The NET Framework is a platform for building XML Web services You invoke services by using industry standard protocols, such as Simple Object Access Protocol (SOAP); Universal Description, Discovery, and Integration (UDDI) Service; and XML You build XML Web services with classes and namespaces that are defined by W3C standards XML Web services provide a means to share data and to structure and manipulate data
The NET platform includes a comprehensive family of products, built on XML and Internet industry standards The platform provides for each aspect of developing, managing, using, and experiencing XML Web services
XML Web services allow applications to communicate and share data over the Internet, regardless of operating system or programming language Microsoft is building the NET platform today in the following five areas:
Trang 9Lesson: Common Business Problems
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
This lesson introduces common business problems that you can solve by using XML in the NET Framework when you develop applications XML provides a uniform method for describing and exchanging structured data
After completing this lesson, you will be able to:
• List common data-related business problems
Introduction
Lesson objectives
Trang 104 Module 1: Introduction to XML in the NET Framework
Multimedia: Common Business Problems
can help solve common problems encountered by businesses that exchange data
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
This interactive animation shows problems often encountered by businesses that share data, particularly those that do business over the Internet
The animation begins with a brief display of the entire process Click the
ZOOM IN button in the lower right corner of the display The animation then
zooms in on the featured company, Northwind Traders, and the button changes
to read OVERVIEW
You can move between the overview and the zoomed-in view at any time At the bottom of the display is a slider that makes each portion of the process active to show interactions between Northwind Traders and its suppliers (to the
left) and its customers (to the right) You can click the more buttons next to
each application or component to display explanations of that application or component
Introduction
Trang 11Common Business Problems
***************************** ILLEGAL FOR NON - TRAINER USE ******************************
Doing business over the Internet brings many companies with many different systems together Although the idea of doing business over the Internet is relatively recent, many companies have a lot of time and money invested in systems they have been using for a long time Integrating data with your business’s existing systems and with those of your trading partners is one of the biggest problems facing programmers today
For companies to share data, it must be available to many applications on different operating systems For applications to exchange data, the data must be structured so that different applications can use it Some data is stored in hierarchical systems, including XML documents Other data is stored in relational databases, such as Microsoft SQL Server™ Still other data is stored
in an unstructured way, such as in flat files
One of the biggest problems that businesses face, particularly those that use the Internet, is that applications use many different types of data These problems include the following:
Different XML formats XML files can be in a variety of grammars, such as a grammar that uses only elements or one that uses both elements and attributes Businesses can solve this type of data transformation problem by using templates that provide standardization
Generating XML from data in another format Business data exists in many different formats, including EDIFACT, ANSI X12, XML, comma-separated value (CSV) files, tab-separated files, and many more Business can solve data-generation problems by providing a standard structure for the data that all the applications can use
Trang 126 Module 1: Introduction to XML in the NET Framework
Validating data structures One of the key advantages of using XML in applications is that it provides a means for applications to share data However, because data can come from
so many different sources, there must be a way to make certain that the data
is valid Businesses can solve this type of problem by using validating tools, such as schemas, that are standard across applications and data types When data comes from a variety of sources and in a variety of formats, it can be difficult to find the precise data items that an application requires The issues include the following:
Searching for specific items in data Applications not only use data in different formats, but also in different structures Some data is stored in hierarchical structures, some in relational structures, and some in no structure at all, but merely as text You need to have a way to navigate the structure, or lack of structure, of the data container
Summarizing, combining, and correlating data After you locate the data you want, you want to act on it For example, you may want to prepare reports or generate lists for shipping or accounting You can merge, or combine, data from multiple sources into a single, consistent format that you can process, edit, or manipulate to solve specific business problems The format that NET was designed to work with is XML
With XML in the NET Framework, you can filter data to minimize information overload so that you can focus on the data that is relevant to the business problem at hand
To manipulate data, there must a structure to provide context After you manipulate the data, you must likewise have a structure in which to display it Manipulation issues include the following:
Transforming data from XML into another format You might need to transform data in one XML grammar into another if the elements and attributes of the application you work with differ from the XML structure of the data you consume If you work with a Web application, you might need to transform data in structured XML documents into Hypertext Markup Language (HTML) documents that you can display
on a Web site You might also need to print out the data; for example in Adobe Acrobat Portable Document Format (PDF) files
Changing the structure of a document You might need to add elements or nodes to a document in XML format, or add or delete elements or attributes
Searching for and
querying data
Manipulating data