|
Programming .NET Web Services
Web services are poised to become a key technology for a
wide range of Internet-enabled applications, spanning
everything from straight B2B systems to mobile devices and
proprietary in-house software. While there are several
tools and platforms that can be used for building web
services, developers are finding a powerful tool
in
Microsoft's .NET Framework and Visual Studio .NET. Designed
from scratch to support the development of web services, the
.NET Framework simplifies the process--programmers find that
tasks that took an hour using the SOAP Toolkit take just
minutes.
Programming .NET Web Services is a comprehensive tutorial
that teaches you the skills needed to develop web services
hosted on the .NET platform. Written for experienced
programmers, this book takes you beyond the obvious
functionality of ASP.NET or Visual Studio .NET to give you a
solid foundation in the building blocks of web services, and
leads you step-by-step through the process of creating your
own.
Beginning with a close look at the underlying technologies
of web services, including the benefits and limitations,
Programming .NET Web Services discusses the unique features
of the .NET Framework that make creating web services
easier, including the Common Language Runtime (CLR) and the
namespaces used in .NET programming. Filled with numerous
code examples using the C# language, the book leads you
through some of the more challenging issues of web services
development, including the use of proxies, marshalling of
complex data types, state management, security, performance
tuning and cross-platform implementation. The book also
covers:
Creating and publishing your first web service
The UDDI project, tModels and what they mean for web service
publishers
Securing web service applications
Written for programmers who are familiar with the .NET
Framework and interested in building industrial-strength web
services, Programming .NET Web Services is full of practical
information and good old-fashioned advice.
Preface
1. Understanding Web Services
Why Web Services?
The Origin of Web Services
The .NET Web Service Architecture
Competing Web Service Technologies
Other Technologies
2. Creating ASP.NET Web Services
Creating a Web Service: "Hello, World"
The WebService Attribute
The WebMethod Attribute
Deploying a Web Service
Using the .NET Compilers
3. Consuming Web Services
The Web Service Consumer Model
Accessing Web Services: HTTP
Exposing Web Services: WSDL
Calling Web Services: the Client Proxy
Creating a Client Proxy
Working with the Proxy Class
Consuming a Web Site Using a Screen Scraper Service
4. Working with Data Types
Working with Simple Data Types
Working with Complex Data Types
Using Complex Data Types as Arguments
Passing Data with DataSets
Using Binary Data
5. Managing State
The Great State Debate
State Management Scenarios
ASP.NET's Session State Facility
Session State Configuration
Example: Managing Session State
Application State
Custom Cookies
Stateless Web Services and Tickets
SOAP Headers
6. Asynchronous Services
Asynchronous Consumption
Asynchronous Services
7. Caching and Profiling
ASP.NET Caching
Simple Output Caching
Data Caching
Cache Dependencies
Replacing Stateful Design with Caching
Profiling Your Web Service
8. Debugging, Tracing, and Logging
Debugging in Visual Studio .NET
Using Exceptions
Logging Errors with .NET
SOAP Extensions
Advanced SOAP Extensions
9. Security and Authentication
Potential Vulnerabilities
Web Service Authentication
IIS Security Features
ASP.NET Security
Programmatic Security
Custom Authentication Techniques
Process Security
10. Publishing and Discovery
Publishing
UDDI
UDDI Business Registries
Registering a Business Entity
WSDL and UDDI
Visual Studio .NET and UDDI
UDDI Messaging
UDDI Access with .NET
The WS-Inspection Alternative
Customizing the IE Test Page
11. Interoperability
State of the Specifications
Implementation Differences
SOAP Interoperability
WSDL Interoperability
HTTP Interoperability and M-Post
Known Interoperability Problems
Maximizing Interoperability
A. Namespace Quick Reference
B. Web Service Technologies
Index
|