|
.NET XML Web Services Step By Step
Learn to create and use XML Web services at your own pace with this hands-on, self-study guide - based on the proven Microsoft STEP BY STEP learning method!
XML Web services are the next logical step in the evolution of the Internet. Teach yourself how to write and deploy XML Web services for Microsoft .NET?one step at a time - with this
modular, accessible tutorial. It delivers expert, task-based instruction plus a real-world XML service example to help you apply what you already know about Microsoft Visual C#, Microsoft Visual Basic .NET, and object-oriented programming so that you can learn XML Web services development at your own pace. Topics covered include:
UNDERSTANDING XML WEB SERVICES
* XML Web services architecture
* XML Web services protocols
* Web Service Description Language (WSDL)
* Discovering XML Web services
BUILDING XML WEB SERVICES
* Writing .NET XML Web services
* Testing XML Web services
* Debugging XML Web services
CONSUMING XML WEB SERVICES
* Discovering XML Web services
* Generating a proxy class
* Creating clients that consume XML Web services
* Consuming XML Web services asynchronously
* Consuming XML Web services with HTTP
ADVANCED XML WEB SERVICES
* Managing XML Web service state
* Securing XML Web services
* Using data sets with XML Web services
* Using SOAP headers
Table of Contents:
Introduction
Why We Wrote This Book
Who Should Read This Book
Organization of This Book
Part 1 - Understanding XML Web Services
Part 2 - XML Web Services and Clients
Part 3 - Advanced XML Web Services
Part 4 - Appendixes
Installing and Using the Practice Files
Downloading and Installing the Libraries and Sample Code
System Requirements
Conventions and Features in This Book
Support
PART 1 UNDERSTANDING XML WEB SERVICES
CHAPTER 1 Introduction to XML Web Services
What Are XML Web Services?
XML Web Service Examples
Information Services
Centralization Services
Data Integration, Aggregation, and Analysis
Extending and Integrating Applications
Peer-Based and Push-Based Systems
The Benefits of XML Web Services
Standards Based
Vendor Neutral
Simplicity
Language and Platform Independence
Functional Abstraction
Discoverable
Reduced Development Time
Challenges Facing XML Web Services
Immature Technology
Consumer Adoption
Unproven Business Model
Managing Complexity
Maintaining Consistency
Operational Issues and Support Infrastructure
XML Web Services Standards and Protocols
Directory and Discovery
Description
Messaging
The Extensible Markup Language
Transport
XML Web Service Architecture
Directory, Discovery, and Description
Proxy Objects
Creating XML Web Services with ASP.NET
CHAPTER 2 Developing XML Web Services Using Visual Studio .NET
Preparing the Development Environment
IIS Server Requirements
Installing Internet Information Services
Configuring IIS Server for XML Web Service Development
Installing Visual Studio.NET
ASP.NET Fundamentals for XML Web Services
ASMX Files
The @ WebService Directive
Code-Behind Files
Creating XML Web Service Projects in Visual Studio .NET
Creating the HelloWorld XML Web Service
Testing the HelloWorld XML Web Service
The XML Web Services Project Files
Uploading Files to IIS Server from Visual Studio .NET
CHAPTER 3 Building the Credit Card Validation Service
The Credit Card Validation Service
The Credit Card Validation Process
CreditCardValidator Library Functionality
The VISAValidator Service
Creating the VISAValidator Service
Testing the VISAValidator XML Web Service
Understanding the VISAValidator Code
The System.Web.Services Namespace
The WebService Base Class
The WebService Attribute
The WebMethod Attribute
PART 2 XML WEB SERVICES AND CLIENTS
CHAPTER 4 Building a SOAP Client
Proxy Classes and Web References
Creating a Web Reference
Renaming the Web Reference
Viewing the Web Reference Files and Properties
Using a Proxy Class
XML Web Service Clients
Creating the Windows Forms Client
Creating the Web Forms Client
Creating the Console Client
CHAPTER 5 Building an HTTP Client
HTTP-GET and HTTP-POST Protocols
Comparing HTTP-GET and HTTP-POST
Comparing HTTP and SOAP
Consuming XML Web Services Using HTTP
HTTP Proxy Classes
Creating a Web Forms Client
CHAPTER 6 Data Types in XML Web Services
Representing Data Using SOAP
Representing Data Using HTTP
Simple Types
Complex Types
Creating an XML Web Service That Uses a Complex Type
Consuming an XML Web Service That Uses a Complex Type
Reference Arguments
Creating an XML Web Service That Uses Reference Arguments
Consuming an XML Web Service That Uses Reference Arguments
CHAPTER 7 Exception Handling
How ASP.NET Handles Exceptions
Using Custom Fault Codes
Throwing Exceptions in XML Web Services
Handling Exceptions in XML Web Service Clients
Testing the WindowsFormsClient Application
CHAPTER 8 Debugging XML Web Services with Visual Studio .NET
Breakpoints and Exceptions
Using Breakpoints
Creating the XML Web Service Debugging Project
Creating the XML Web Service Client
Setting a Breakpoint
Stepping with the Debugger
Configuring Breakpoints
Using the Hit Count
Breaking on Conditions
Disabling and Removing Breakpoints
Breaking on Exceptions
CHAPTER 9 Publishing and Discovering XML Web Services
Publishing and Discovering XML Web Services Using UDDI
Publishing XML Web Services Using UDDI
Discovering XML Web Services Using UDDI
Publishing and Discovering XML Web Services Using DISCO files
DISCO Files
Automatic Discovery and .vsdisco Files
XML Web Service Deployment
Manual Deployment
Visual Studio .NET Copy Project
Visual Studio .NET Web Setup Project
Advanced XML Web Services
CHAPTER 10 State Management
Client State
Using Client Sessions
Consuming an XML Web Service That Uses Client State
Application State
Using the Application Property
Building the Request History Client
Testing the Application State Support
CHAPTER 11 The DataSet and XML Web Services
Overview of the DataSet
Using a DataSet
Creating the Windows Forms Validation Client
Consuming an XML Web Service That Uses a DataSet
CHAPTER 12 Caching and Application Events
Caching
The CacheDuration Property
The Cache Object
Creating an XML Web Service That Uses Caching
Creating the Windows Forms Validation Client
Consuming an XML Web Service That Uses Caching
Testing the XML Web Service
The Global.asax file
Creating an XML Web Service That Uses Application Events
CHAPTER 13 Securing XML Web Services
Authentication
Implementing Basic and Digest Authentication
Implementing Integrated Windows Authentication
Authorization
URL Authorization
File Authorization
CHAPTER 14 Custom SOAP Headers
Using Custom SOAP Headers in XML Web Services
Developing an XML Web Service That Uses Custom SOAP Headers
Developing an XML Web Service Client That Uses Custom SOAP Headers
CHAPTER 15 Consuming XML Web Services Asynchronously
Asynchronous XML Web Services
Slowing Down the Test XML Web Service
Asynchronous XML Web Service Clients
Proxy Class Methods
Using Callbacks to Signal Asynchronous Method Completion
Waiting for Asynchronous Method Completion
Blocking on Asynchronous Method Completion
Polling to Determine Asynchronous Method Completion
CHAPTER 16 Manually Creating Proxies
Using the Wsdl.exe Tool
Creating a Proxy DLL
Creating a Client Using a Proxy DLL
APPENDIX A The Credit Card Validation Library
APPENDIX B XML Web Service Resources
INDEX
|