Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Allen Jones, Adam Freeman
Microsoft® .NET XML Web Services Step by Step
Microsoft® .NET XML Web Services Step by Step
A Note Regarding Supplemental Files
Dedication
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
I. Understanding XML Web Services
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
UDDI
DISCO
Description
WSDL
Messaging
SOAP
The Extensible Markup Language
Transport
XML Web Service Architecture
Directory, Discovery, and Description
Proxy Objects
Creating XML Web Services with ASP.NET
Summary
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 2 Quick Reference
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
Chapter 3 Quick Reference
II. XML Web Services and Clients
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 4 Quick Reference
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 5 Quick Reference
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 6 Quick Reference
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 7 Quick Reference
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
Trigger the Breakpoint
Reset the Hit Count
Breaking on Conditions
Trigger the Breakpoint
Change the Breakpoint Condition
Trigger the Breakpoint
Disabling and Removing Breakpoints
Breaking on Exceptions
Chapter 8 Quick Reference
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
Test the Validator Service
Chapter 9 Quick Reference
III. Advanced XML Web Services
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 10 Quick Reference
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 11 Quick Reference
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 12 Quick Reference
13. Securing XML Web Services
Authentication
Implementing Basic and Digest Authentication
Implementing Integrated Windows Authentication
Authorization
URL Authorization
File Authorization
Chapter 13 Quick Reference
14. Custom SOAP Headers
Using Custom SOAP Headers in XML Web Services
Developing an XML Web Service That Uses Custom SOAP Headers
Add the SOAP Header Class
Developing an XML Web Service Client That Uses Custom SOAP Headers
Chapter 14 Quick Reference
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
The ValidateCard Method
The BeginValidateCard Method
The EndValidateCard Method
Using Callbacks to Signal Asynchronous Method Completion
Waiting for Asynchronous Method Completion
Blocking on Asynchronous Method Completion
Polling to Determine Asynchronous Method Completion
Chapter 15 Quick Reference
16. Manually Creating Proxies
Using the Wsdl.exe Tool
Creating a Proxy DLL
Creating a Client Using a Proxy DLL
Chapter 16 Quick Reference
IV. Appendixes
A. The Credit Card Validation Library
CreditCardValidation.dll
How Card Numbers Are Validated
Prefixes and Lengths
The LUHN Formula
The CreditCardValidation Code
The Exception Classes
CCInvalidPrefixException
CCInvalidLengthException
CCIllegalCharacterException
The Validator Class
The formatCreditCardNumber Method
The checkLUHN method
The ValidateAMEX, ValidateMasterCard, and ValidateVISA Methods
Summary
B. XML Web Service Resources
Extensible Markup Language (XML)
Hypertext Transfer Protocol (HTTP)
Microsoft .NET
Microsoft .NET Passport
Secure Sockets Layer (SSL)
Simple Object Access Protocol (SOAP)
Transport Layer Security (TLS)
Universal Description, Discovery, and Integration (UDDI)
Web Services Description Language (WSDL)
General
C. About the Author
About the Authors
Copyright
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Microsoft® .NET XML Web Services Step by Step
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset