Tải bản đầy đủ (.pdf) (12 trang)

Developing XML Web Services Using Microsoft Visual C#™ .NET Beta 2

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (72.29 KB, 12 trang )







Course Number: 2524A


Released: 10/2001

Delivery Guide
Developing XML Web
Services Using Microsoft
®
Visual C#

.NET Beta 2
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
Developing XML Web Services Using Microsoft® Visual C#™ .NET Beta 2 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 Web Services
Overview..................................................................................................................1

Evolution of Distributed Applications.....................................................................2

Problems with Traditional Distributed Applications ...............................................4

Introducing Web Services......................................................................................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 Web Services Programming Model................................................................18

Review...................................................................................................................21

Module 3: The Underlying Technologies of Web Services
Overview..................................................................................................................1

HTTP Fundamentals................................................................................................2

XML Essentials......................................................................................................14

SOAP Fundamentals..............................................................................................26

Lab 3: Issuing HTTP and SOAP Requests Using the .NET Framework...............39

Review...................................................................................................................45
Module 4: Consuming Web Services
Overview..................................................................................................................1

WSDL Documents...................................................................................................2

Web Service Discovery............................................................................................9

Web Service Proxies..............................................................................................18

Implementing a Web Service Consumer Using Visual Studio .NET ....................26

Lab 4: Implementing a Web Service Consumer Using Visual 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 Web Services.......................................................................................41

Lab 5: Implementing a Simple Web Service .........................................................59

Review...................................................................................................................73
iv Developing XML Web Services Using Microsoft® Visual C#™ .NET Beta 2


Module 6: Publishing and Deploying Web Services
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 Web Services in a UDDI Registry....................... 27

Review .................................................................................................................. 38

Module 7: Securing Web Services
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 Web Services.............................................................................. 50

Review .................................................................................................................. 62

Module 8: Designing Web Services
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 Web Services ................................................................... 2

Aggregating Web Services.................................................................................... 13

Lab 9: Implementing an Aggregated Web Service............................................... 17

Review .................................................................................................................. 28

Developing XML Web Services Using Microsoft® Visual C#™ .NET Beta 2 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 Web Services 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 Microsoft
Visual Basic
®


!


Programming in
Microsoft Component
Object Model (COM)
or JavaBeans

!

Programming in
COM+ or Enterprise
JavaBeans

!


Familiarity with
Extensible Markup
Language (XML)

!



×