Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 498 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
498
Dung lượng
6,53 MB
Nội dung
Course Number: 2524B Released: 05/2002 Delivery Guide DevelopingXMLWebServices Using Microsoft® ASP.NET Part Number: X08-85030 Information 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, places or events 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. 2001-2002 Microsoft Corporation. All rights reserved. Microsoft MS-DOS, Windows, Windows NT Active Directory, Authenticode, IntelliSense, FrontPage, Jscript, MSDN, PowerPoint, Visual C#, Visual Studio, Visual Basic, Windows NT, and Win32 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. Course Number: 2524B Part Number: X08-85030 Released: 05/2002 DevelopingXMLWebServices Using Microsoft® ASP.NET iii Contents Introduction Course Materials 2 Prerequisites 3 Course Outline 4 Setup 8 Microsoft Official Curriculum 9 Microsoft Certified Professional Program 11 Facilities 13 Module 1: The Need for XMLWebServices Overview 1 Evolution of Distributed Applications 2 Problems with Traditional Distributed Applications 4 Introducing XMLWebServices 14 The Web Technology Stack and .NET 16 The .NET Alternatives to XMLWebServices 18 Common XMLWeb Service Scenarios 20 Review 22 Module 2: XMLWeb Service Architectures Overview 1 Service-Oriented Architecture 2 XMLWebServices Architectures and Service-Oriented Architecture 4 Roles in an XMLWebServices Architecture 8 The XMLWebServices Programming Model 16 Review 18 Module 3: The Underlying Technologies of XMLWebServices Overview 1 HTTP Fundamentals 2 Using HTTP with the .NET Framework 8 XML Essentials 17 XML Serialization in the .NET Framework 26 SOAP Fundamentals 29 Using SOAP with the .NET Framework 36 Lab 3.1: Issuing HTTP and SOAP Requests Using the .NET Framework 45 Review 54 Module 4: Consuming XMLWebServices Overview 1 WSDL Documents 2 XMLWeb Service Discovery 8 XMLWeb Service Proxies 19 Implementing an XMLWeb Service Consumer Using Visual Studio .NET 27 Lab 4.1: Implementing an XMLWeb Service Consumer Using Visual Studio .NET 34 Review 43 iv DevelopingXMLWebServices Using Microsoft® ASP.NET Module 5: Implementing a Simple XMLWeb Service Overview 1 Creating an XMLWeb Service Project 2 Implementing XMLWeb Service Methods 11 Managing State in an ASP.NET XMLWeb Service 33 Debugging XMLWebServices 42 Lab 5.1: Implementing a Simple XMLWeb Service 61 Review 77 Module 6: Publishing and Deploying XMLWebServices Overview 1 Overview of UDDI 2 Publishing an XMLWeb Service 16 Finding an XMLWeb Service 21 Publishing an XMLWeb Service on an Intranet 24 Configuring an XMLWeb Service 26 Lab 6.1: Publishing and Finding WebServices in a UDDI Registry 29 Review 39 Module 7: Securing XMLWebServices Overview 1 Overview of Security 2 Built-In Authentication 10 Custom Authentication: SOAP Headers 18 Authorization: Role-Based Security 25 Authentication and Authorization with HttpModules 34 Authorization: Code Access Security 39 Encryption 46 Lab 7.1: Securing XMLWebServices 54 Review 70 Course Evaluation 72 Module 8: Designing XMLWebServices Overview 1 Data Type Constraints 2 Performance 11 Lab 8.1: Implementing Caching in an XMLWeb Service 28 Reliability 33 Versioning 37 HTML Screen Scraping XMLWebServices 39 Aggregating XMLWebServices 47 Demonstration: Example of an Aggregated XMLWeb Service 52 Lab 8.2: Implementing an Aggregated XMLWeb Service 53 Review 67 Module 9: Global XMLWebServices Architecture Overview 1 Introduction to GXA 2 Routing and Referral 8 Security and License 16 Review 19 Course Evaluation 20 DevelopingXMLWebServices Using Microsoft® ASP.NET v About This Course This section provides you with a brief description of the course, audience, suggested prerequisites, and course objectives. This three-day instructor-led course teaches experienced software developers how to use XMLWebservices in solving common problems in the distributed application domain. This course teaches developers how to build, deploy, locate, and consume XMLWeb services. This course is designed for experienced software developers who have previously built component-based applications. This course requires that students meet the requirements listed in the following knowledge and skills matrix. Understand Concepts Written simple applications Written real- world applications Prerequisites Preferred Required Preferred Required Preferred Required Familiarity with C# Programming in C++, Java, or Microsoft ® Visual Basic ® Familiarity with Extensible Markup Language (XML) After completing this course, the student will be able to: Explain how XMLWebservices emerged as a solution to the problems with traditional approaches to designing distributed applications. Describe the architecture of an XMLWeb services-based solution. Explain how to use the Microsoft .NET Framework to implement XMLWeb services. Implement an XMLWeb service consumer by using Microsoft Visual Studio ® .NET. Implement a simple XMLWeb service by using Microsoft Visual Studio .NET. Publish and deploy an XMLWeb service. Secure a XMLWeb service. Evaluate the trade-offs and issues that are involved in designing a real-world XMLWeb service. Implement nonstandard XMLWebservices such as Hypertext Markup Language (HTML) screen scraping and aggregating XMLWeb services. Describe the Global XML Architecture and explain how to design XMLWebservices to anticipate the new services. Description Audience Student Prerequisites Course Objectives vi DevelopingXMLWebServices Using Microsoft® ASP.NET Course Timing The following schedule is an estimate of the course timing. Your timing may vary. Day 1 Start End Module 9:00 9:20 Introduction 9:20 10:20 Module 1: The Need for XMLWebServices 10:20 10:30 Break 10:30 11:30 Module 2: XMLWeb Service Architecture 11:30 12:15 Lunch 12:15 2:15 Module 3: The Underlying Technologies of XMLWebServices 2:15 2:25 Break 2:25 3:10 Lab 3.1: Issuing HTTP and SOAP Requests Using the .NET Framework 3:10 5:10 Module 4: Consuming XMLWebServices Day 2 Start End Module 9:00 10:15 Lab 4.1: Implementing an XMLWeb Service Consumer Using Visual Studio .NET 10:15 10:25 Break 10:25 12:00 Module 5: Implementing a Simple XMLWeb Service 12:00 12:45 Lunch 12:45 1:40 Module 5: Implementing a Simple XMLWeb Service (continued) 1:40 2:30 Lab 5.1: Implementing a Simple XMLWeb Service 2:30 2:40 Break 2:40 3:05 Lab 5.1: Implementing a Simple XMLWeb Service (continued) 3:05 4:35 Module 6: Publishing and Deploying XMLWebServices 4:35 5:05 Lab 6.1: Publishing and Finding XMLWebServices in a UDDI Registry DevelopingXMLWebServices Using Microsoft® ASP.NET vii Day 3 Start End Module 9:00 9:30 Lab 6.1: Publishing and Finding XMLWebServices in a UDDI Registry (continued) 9:30 10:30 Module 7: Securing XMLWebServices 10:30 10:40 Break 10:40 11:40 Module 7: Securing XMLWebServices (continued) 11:40 12:25 Lunch 12:25 1:25 Lab 7.1: Securing XMLWebServices 1:25 2:25 Module 8: Designing XMLWebServices 2:25 2:35 Break 2:35 3:15 Lab 8.1: Implementing Caching in an XMLWeb Service 3:15 3:45 Module 8: Designing XMLWebServices (continued) 3:45 5:15 Lab 8.2: Implementing an Aggregated XMLWeb Service 5:15 5:45 Module 9: Global XMLWebServices Architecture viii DevelopingXMLWebServices Using Microsoft® ASP.NET Trainer Materials Compact Disc Contents The Trainer Materials compact disc contains the following files and folders: Autorun.exe. When the compact disc is inserted into the CD-ROM drive, or when you double-click the Autorun.exe file, this file opens the compact disc and allows you to browse the Student Materials or Trainer Materials compact disc. Autorun.inf. When the compact disc is inserted into the compact disc drive, this file opens Autorun.exe. Default.htm. This file opens the Trainer Materials Web page. Readme.txt. This file explains how to install the software for viewing the Trainer Materials compact disc and its contents and how to open the Trainer Materials Web page. 2524B_ms.doc. This file is the Manual Classroom Setup Guide. It contains the steps for manually installing the classroom computers. 2524B_sg.doc. This file is the Automated Classroom Setup Guide. It contains a description of classroom requirements, classroom configuration, instructions for using the automated classroom setup scripts, and the Classroom Setup Checklist. Powerpnt. This folder contains the Microsoft PowerPoint® slides that are used in this course. Pptview. This folder contains the Microsoft PowerPoint Viewer 97, which can be used to display the PowerPoint slides if Microsoft PowerPoint 2002 is not available. Do not use this version in the classroom. Setup. This folder contains the files that install the course and related software to computers in a classroom setting. StudentCD. This folder contains the Web page that provides students with links to resources pertaining to this course, including additional reading, review and lab answers, lab files, multimedia presentations, and course- related Web sites. Tools. This folder contains files and utilities used to complete the setup of the instructor computer. Webfiles. This folder contains the files that are required to view the course Web page. To open the Web page, open Microsoft Windows ® Explorer, and in the root directory of the compact disc, double-click Default.htm or Autorun.exe. DevelopingXMLWebServices Using Microsoft® ASP.NET ix Student Materials Compact Disc Contents The Student Materials compact disc contains the following files and folders: Autorun.exe. When the compact disc is inserted into the CD-ROM drive, or when you double-click the Autorun.exe file, this file opens the compact disc and allows you to browse the Student Materials compact disc or install Internet Explorer. Autorun.inf. When the compact disc is inserted into the compact disc drive, this file opens Autorun.exe. Default.htm. This file opens the Student Materials Web page. It provides resources pertaining to this course, including additional reading, review and lab answers, lab files, multimedia presentations, and course-related Web sites. Readme.txt. This file explains how to install the software for viewing the Student Materials compact disc and its contents and how to open the Student Materials Web page. 2524B_ms.doc. This file is the Manual Classroom Setup Guide. It contains a description of classroom requirements, classroom setup instructions, and the classroom configuration. Database. This folder contains databases used in the course. Democode. This folder contains demonstration code. Flash. This folder contains the installer for the Macromedia Flash 5.0 browser plug-in. Fonts. This folder contains fonts that are required to view the Microsoft PowerPoint presentation and Web-based materials. Labfiles. This folder contains files that are used in the hands-on labs. These files may be used to prepare the student computers for the hands-on labs. Mplayer. This folder contains the setup file to install Microsoft Windows Media ™ Player. UDDI. This folder contains files that are used to initialize the Universal Description, Discovery, and Integration (UDDI) registry. The folder also contains files that are used to install the UDDI Services and the UDDI SDK, and to register the XMLWebservices that UDDI registry uses in this course. Webfiles. This folder contains the files that are required to view the course Web page. To open the Web page, open Windows Explorer, and in the root directory of the compact disc, double-click Default.htm or Autorun.exe. Wordview. This folder contains the Word Viewer that is used to view any Word document (.doc) files that are included on the compact disc. x DevelopingXMLWebServices Using Microsoft® ASP.NET Document Conventions The following conventions are used in course materials to distinguish elements of the text. Convention Use Bold Represents commands, command options, and syntax that must be typed exactly as shown. It also indicates commands on menus and buttons, dialog box titles and options, and icon and menu names. Italic In syntax statements or descriptive text, indicates argument names or placeholders for variable information. Italic is also used for introducing new terms, for book titles, and for emphasis in the text. Title Capitals Indicate domain names, user names, computer names, directory names, and folder and file names, except when specifically referring to case-sensitive names. Unless otherwise indicated, you can use lowercase letters when you type a directory name or file name in a dialog box or at a command prompt. ALL CAPITALS Indicate the names of keys, key sequences, and key combinations — for example, ALT+SPACEBAR. Monospace Represents code samples or examples of screen text. [ ] In syntax statements, enclose optional items. For example, [filename] in command syntax indicates that you can choose to type a file name with the command. Type only the information within the brackets, not the brackets themselves. { } In syntax statements, enclose required items. Type only the information within the braces, not the braces themselves. | In syntax statements, separates an either/or choice. Indicates a procedure with sequential steps. In syntax statements, specifies that the preceding item may be repeated. . . . Represents an omitted portion of a code sample. [...]... scenarios where XMLWebservices might be an appropriate solution You are encouraged to share other scenarios as appropriate with your students Module 1: The Need for XMLWebServices 1 Overview Evolution of Distributed Applications Problems with Traditional Distributed Applications Introducing XMLWebServices The Web Technology Stack and NET The NET Alternatives to XML Web Services Common XMLWeb Service... Simple XMLWeb Service,” explains how to implement a simple XMLWeb service by using Microsoft ASP. NET The module also explains how to manage state in ASP. NET XMLWebservices Some of the techniques for debugging XMLWebservices are also covered After completing this module, you will be able to implement a simple XMLWeb service by using Microsoft Visual Studio NET Module 6, “Publishing and Deploying XML. .. completing this module, you will be able to implement an XMLWeb service consumer by using Microsoft Visual Studio® NET 5 6 Introduction Course Outline (continued) Module 5: Implementing a Simple XMLWeb Service Module 6: Publishing and Deploying XMLWebServices Module 7: Securing XMLWebServices Module 8: Designing XMLWebServices Module 9: Global XMLWebServices Architecture *****************************ILLEGAL... that the NET Framework provides The NET Alternatives to XMLWebServices Explain that the NET Framework supports many patterns for building distributed applications, withXMLWebservices being just one type Many students will be interested in NET remoting solutions Be sure to contrast the tighter coupling of NET remoting solutions vs the loose coupling of XMLWeb service solutions Common XMLWeb Service... 2524B, DevelopingXML Web Services Using Microsoft ASP. NET, you can take either of the following courses: Course 2349B, Programming with the Microsoft NET Framework (Microsoft Visual C#™ NET) Course 2415B, Programming with the Microsoft NET Framework (Microsoft Visual Basic NET) 10 Introduction Course Title and description 2349B Programming with the Microsoft NET Framework (Microsoft Visual C# NET) This... architectural pattern Explain how the Web has provided a new environment in which distributed applications can be developed and define what some of the benefits and challenges of the Web are Introducing XMLWebServices Briefly describe what XMLWebservices are Emphasize the fact that the underlying technologies for XMLWebservices are Internet technologies Explain how XMLWebservices are an evolution of... Applications 2 Problems with Traditional Distributed Applications 4 Introducing XMLWebServices 14 The Web Technology Stack and NET 16 The NET Alternatives to XMLWebServices 18 Common XMLWeb Service Scenarios 20 Review 22 Information in this document, including URL and other Internet Web site references, is subject to change without notice Unless otherwise noted, the example companies, organizations,... hands-on experience with each of these technologies After completing this module, you will be able to describe the underlying technologies of XMLWebservices and explain how to use the NET Framework to communicate withXML Web services using these technologies Introduction Module 4, “Consuming XMLWeb Services, ” is the first of the modules that discusses the implementation details of an XMLWeb service-based... This module specifically focuses on how to implement an XMLWeb service consumer to consume (use) XML Web servicesWeb Service consumers are implemented based on the service description documents of XMLWebservices In this context, this module discusses the structure of a Web Service Description Language (WSDL) document and how to find XMLWebservices and their service descriptions at known endpoints... XMLWeb Services, ” explains how to publish an XMLWeb service in a Universal Description, Discovery, and Integration (UDDI) registry to facilitate XMLWebservices discovery at unknown endpoints This module covers both publishing and finding an XMLWeb service in a UDDI registry The options for publishing an XMLWeb service on an intranet and the options for modifying the default configuration of an XML . Simple XML Web Service Overview 1 Creating an XML Web Service Project 2 Implementing XML Web Service Methods 11 Managing State in an ASP. NET XML Web Service 33 Debugging XML Web Services 42. Module 6: Publishing and Deploying XML Web Services Module 7: Securing XML Web Services Module 8: Designing XML Web Services Module 9: Global XML Web Services Architecture ***************************** ILLEGAL. The .NET Alternatives to XML Web Services 18 Common XML Web Service Scenarios 20 Review 22 Module 2: XML Web Service Architectures Overview 1 Service-Oriented Architecture 2 XML Web Services