Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 12 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
12
Dung lượng
72,29 KB
Nội dung
Course Number: 2524A Released: 10/2001 Delivery Guide DevelopingXMLWebServicesUsingMicrosoft ® Visual C# ™ .NETBeta2 Part Number: X08-51644 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 Microsoft Corporation. All rights reserved. Microsoft, MS-DOS, Windows, Windows NT, Active Directory, Authenticode, Biztalk, Intellisense, Jscript, MSDN, PowerPoint, Visual Basic, Visual C++, Visual C#, Visual Studio, Win32, and Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. Course Number: 2524A Part Number: X08-51644 Released: 10/2001 DevelopingXMLWebServicesUsing Microsoft® VisualC#™.NETBeta2 iii Contents Introduction Course Materials 2 Prerequisites .3 Course Outline .4 Setup 7 Microsoft Certified Professional Program .8 Facilities .10 Module 1: The Need for WebServices Overview 1 Evolution of Distributed Applications .2 Problems with Traditional Distributed Applications .4 Introducing WebServices 15 The Web Technology Stack and .NET 18 The .NET Alternatives to Web Services 20 Common Web Service Scenarios .22 Review .24 Module 2: Web Service Architectures Overview 1 Service-Oriented Architecture .2 Web Service Architectures and Service-Oriented Architecture .5 Roles in a Web Service Architecture .9 The WebServices Programming Model 18 Review .21 Module 3: The Underlying Technologies of WebServices Overview 1 HTTP Fundamentals 2XML Essentials 14 SOAP Fundamentals 26 Lab 3: Issuing HTTP and SOAP Requests Using the .NET Framework .39 Review .45 Module 4: Consuming WebServices Overview 1 WSDL Documents .2 Web Service Discovery 9 Web Service Proxies 18 Implementing a Web Service Consumer UsingVisual Studio .NET 26 Lab 4: Implementing a Web Service Consumer UsingVisual Studio .NET .36 Review .45 Module 5: Implementing a Simple Web Service Overview 1 Creating a Web Service Project .2 Implementing Web Service Methods .13 Managing State in an ASP.NET Web Service .33 Debugging WebServices .41 Lab 5: Implementing a Simple Web Service .59 Review .73 iv DevelopingXMLWebServicesUsing Microsoft® VisualC#™.NETBeta2 Module 6: Publishing and Deploying WebServices Overview . 1 Overview of UDDI 2 Publishing a Web Service . 17 Finding a Web Service 20 Publishing a Web Service on an Intranet 22 Configuring a Web Service . 24 Lab 6: Publishing and Finding WebServices in a UDDI Registry . 27 Review 38 Module 7: Securing WebServices Overview . 1 Overview of Security 2 Built-In Authentication . 10 Custom Authentication: SOAP Headers . 20 Authorization: Role-Based Security . 26 Authentication: Code Access Security 34 Encryption . 42 Lab 7: Securing WebServices 50 Review 62 Module 8: Designing WebServices Overview . 1 Datatype Constraints . 2 Scalability . 9 Performance 13 Reliability 26 Versioning . 32 ISP and ASP Deployment . 34 Architectural Elements 36 Review 39 Module 9: Implementing a Nonstandard Web Service Overview . 1 HTML Screen Scraping WebServices . 2 Aggregating WebServices 13 Lab 9: Implementing an Aggregated Web Service . 17 Review 28 DevelopingXMLWebServicesUsing Microsoft® VisualC#™.NETBeta2 v About This Course This section provides you with a brief description of the course, audience, suggested prerequisites, and course objectives. Description This three-day instructor-led course teaches experienced software developers how WebServices can be used in solving common problems in the distributed application domain. This course teaches developers how to build, deploy, locate, and consume Web Services. Audience This course is designed for experienced software developers who have previously built component-based applications. Student Prerequisites 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 MicrosoftVisual Basic ® ! Programming in Microsoft Component Object Model (COM) or JavaBeans ! Programming in COM+ or Enterprise JavaBeans ! Familiarity with Extensible Markup Language (XML) ! vi DevelopingXMLWebServicesUsing Microsoft® VisualC#™.NETBeta2 Course Objectives After completing this course, the student will be able to: " Explain how WebServices emerged as a solution to the problems with traditional approaches to designing distributed applications. " Describe the architecture of a Web Services-based solution. " Explain how the Microsoft ® .NET Framework can be used to implement WebServicesusing these technologies. " Implement a Web Service consumer by usingMicrosoftVisual Studio ® .NETBeta2. " Implement a simple Web Service by usingMicrosoftVisual Studio .NETBeta2. " Publish and deploy a Web Service. " Secure a Web Service. " Evaluate the trade-offs and issues involved in designing a real-world Web Service. " Implement nonstandard WebServices such as Hypertext Markup Language (HTML) screen scraping and aggregating Web Services. DevelopingXMLWebServicesUsing Microsoft® VisualC#™.NETBeta2 vii 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 WebServices 10:20 10:30 Break 10:30 11:30 Module 2: Web Service Architectures 11:30 12:15 Lunch 12:15 2:15 Module 3: The Underlying Technologies of WebServices 2:15 2:25 Break 2:25 3:10 Lab 3: Issuing HTTP and SOAP Requests Using the .NET Framework 3:10 5:10 Module 4: Consuming WebServices Day 2 Start End Module 9:00 10:15 Lab 4: Implementing a Web Service Consumer UsingVisual Studio .NET 10:15 10:25 Break 10:25 12:00 Module 5: Implementing a Simple Web Service 12:00 12:45 Lunch 12:45 1:40 Module 5: Implementing a Simple Web Service (continued) 1:40 2:30 Lab 5: Implementing a Simple Web Service 2:30 2:40 Break 2:40 3:05 Lab 5: Implementing a Simple Web Service (continued) 3:05 4:35 Module 6: Publishing and Deploying WebServices 4:35 5:05 Lab 6: Publishing and Finding WebServices in a UDDI Registry viii DevelopingXMLWebServicesUsing Microsoft® VisualC#™.NETBeta2 Day 3 Start End Module 9:00 9:30 Lab 6: Publishing and Finding WebServices in a UDDI Registry (continued) 9:30 10:30 Module 7: Securing WebServices 10:30 10:40 Break 10:40 11:40 Module 7: Securing WebServices (continued) 11:40 12:25 Lunch 12:25 1:25 Lab 7: Securing WebServices 1:25 2:25 Module 8: Designing WebServices 2:25 2:35 Break 2:35 3:20 Module 9: Implementing a Nonstandard Web Service 3:20 4:50 Lab 9: Implementing an Aggregated Web Service Developing XML WebServicesUsing Microsoft® VisualC#™.NETBeta2 ix 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. " 2524A_ms.doc. This file is the Manual Classroom Setup Guide. It contains the steps for manually installing the classroom computers. " Powerpnt. This folder contains the PowerPoint slides that are used in this course. " Pptview. This folder contains the PowerPoint Viewer, which is used to display the PowerPoint slides. " 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. x DevelopingXMLWebServicesUsing Microsoft® VisualC#™.NETBeta2 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. " 2524A_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. " 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. " 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. " WebServicesSolution. This folder contains the final webservices solutions. " Wordview. This folder contains the Word Viewer that is used to view any Word document (.doc) files that are included on the compact disc. [...].. .Developing XML WebServices Using Microsoft Visual C#™ NET Beta2 xi Document Conventions The following conventions are used in course materials to distinguish elements of the text Convention Use # Indicates an introductory page This . Securing Web Services (continued) 11:40 12: 25 Lunch 12: 25 1 :25 Lab 7: Securing Web Services 1 :25 2: 25 Module 8: Designing Web Services 2: 25 2: 35 Break 2: 35 3 :20 . Web Service consumer by using Microsoft Visual Studio ® .NET Beta 2. " Implement a simple Web Service by using Microsoft Visual Studio .NET Beta 2.