Save 40% on books and eBooks + 70% on videos now through May 31*—use code PROGRAM. Shop now.
The ultimate Microsoft insider explains how to get the most out of .NET's powerful tools for building Web services
° Ballinger is a key figure on Microsoft's .NET Framework team, and is widely known
° Learn not just how to use .NET to build Web services, but why .NET was built and works the way it does
° Part of the Microsoft .NET Development Series
Praise for .NET Web Services
“Keith Ballinger has been ‘Mr. Web Services’ at Microsoft for as long as there were Web services. Anyone doing work on the Microsoft Web Services platform would do themselves a favor by reading this book, as Keith’s insights are unique.”—Bob Beauchemin, DevelopMentor
“This book is a very good introduction to Web services, providing enough specific information for a person to fully understand the principles and implementation issues of Web services . . . Ballinger clearly outlines the fundamental architectural topics that any organization looking to implement XML Web services should consider.”—Colin Bowern, Consultant, Microsoft Corporation
“This book provides information about all principal components of Webservices: transport protocol, interface definition and services discovery mechanisms, security and messaging infrastructure, as well as underlying technologies (XML, TCP/IP, HTTP). Description of each subject is comprehensive and complete; examples provide good illustration from the content.”—Max Loukianov, Solomio Corp.
.NET Web Services is the authoritative guide to designing and architecting better Web services using Microsoft technologies. Written by Keith Ballinger, a Program Manager for XML Web Services at Microsoft, this book explains what Web services are, why they exist, and how they work in .NET. Readers will gain a thorough understanding of the technologies that allows them to take full advantage of .NET.
The book opens with an introduction to Web services and Web services standards. It then explores .NET technologies and examines how the .NET Framework gives developers the tools they need to build Web service applications. The core of the book focuses on the key specifications that make up the Web services architecture, from HTTP to SOAP to WS-Security. .NET Web Services concludes with the author's expert advice on architecting and designing Web service applications.
Topics covered include:
Best practices are illustrated throughout with full working examples as well as code samples using C# and ASP.NET Web services. A companion Web site at www.keithba.net includes all sample code from the book.
Books in the Microsoft .NET Development Series are written and reviewed by the principal authorities and pioneering developers of the Microsoft .NET technologies, including the Microsoft .NET development team and DevelopMentor. Books in the Microsoft .NET Development Series focus on the design, architecture, and implementation of the Microsoft .NET initiative to empower developers and students everywhere with the knowledge they need to thrive in the Microsoft .NET revolution.
Click below for Web Resources related to this title:
Author's Web Site
Click below for Sample Chapter(s) related to this title:
Sample Chapter 1
1. Introducing Web Services.
The Problem: Sharing Data.
The Solution: Distributed Application Development.
The Web Architecture.
Defining Web Services.
The Significance of Internet Standards.
The Significance of WSDL.
The Significance of Interoperability.
The Significance of Loose Coupling.
The Web Service Architecture.
The Baseline Specifications of Web Service Architecture.
XML and XML Schema.
Standards for XMLWeb Services.
The Protocol: SOAP.
Describing Services with WSDL.
Discovering Services with UDDI.
Roadmap to ASP.NET Web Services.
Anatomy of a Web Service.
Building Document-Literal Services.
Building Document-Encoded Services.
Building RPC-Encoded Services.
Building One-Way Services.
Using SOAP Bindings.
Implementing a Server Asynchronously.
Using SOAP Headers.
Creating Clients with the .NET Framework SDK.
Discovery with disco.exe.
Creating Clients with Visual Studio .NET.
Creating Web Service Clients Manually.
Building Document-Literal Clients.
Building Document-Encoded Clients.
Building RPC-Encoded Clients.
Building One-Way Clients.
Building a Client That Includes Asynchronous Methods.
Handling Errors and SOAP Faults.
Extending and Customizing a Client.
Only Classes with a Public, Default Constructor Will Be Serialized.
Only Public Fields and Properties Will Be Serialized.
Read-Only Fields and Properties Will Not Be Serialized.
Methods and Other Type Information Will Not Be Serialized.
Writing and Reading XML.
Serializing Encoded XML.
Customizing XML Serialization.
The Namespace of Serialized XMLWill Be http://tempuri.org by Default.
Properties and Fields Will Remain in the Same Namespace.
Properties and Fields Will Be Serialized as Elements.
Arrays with XML Serialization.
Serializing Untyped XML.
Creating Classes from Schemas.
XML Serialization and Web Services.
Customizing Transport Information.
Setting Exposed HTTP Properties.
Overriding Proxy Class Behavior.
The Web Services Enhancements for Microsoft .NET.
Unreliable Messages with UDP.
SOAP in E-mail: SMTP.
The Web's Transport: HTTP.
The WebClient Class.
The WebRequest Classes.
XML Documents and Namespaces.
Programming with XML and Namespaces.
Streaming XML Processing.
Describing XML with Schemas.
Data Types with XML Schema.
Describing the XML Shape.
Programming with Schemas.
Programming Schema-Based XML.
Manipulating XML Schema Documents.
Overview of the SOAP Protocol.
Enveloping with SOAP.
Errors with SOAP.
Remote Method Calls with SOAP.
SOAP and HTTP.
Using SOAP to Send Messages.
SOAP Headers and Asynchronous Messaging
Requirements for Describing Web Services.
The Web Services Description Language.
Anatomy of WSDL.
Abstract Message Operations.
Concrete Operation Information.
Port Types and Operations.
Services and Ports.
Reading WSDL Documents with .NET.
Web Service Policy.
Universal Discovery with UDDI.
The Anatomy of UDDI.
WSDL and UDDI.
Anatomy of WS-Inspection.
Message Paths with WS-Routing.
Building WS-Routing Applications.
Dynamic Configuration of SOAP Routers.
Anatomy of a DIME Message.
Using DIME with SOAP.
Security Technologies and Standards.
Web Service Security Protocols.
Dialogues and Monologues.
Writing Performance-Oriented Code with .NET.
Message Size and Network Latency.
How Important Is Performance?
Specific SOAP Issues.
Types of Versioning.
Loosely Coupled Architecture and Implementation Versioning.
Namespaces and Versioning.
Using Business Logic.
This book is the result of several years of work. Not just my own personal work (although writing this book has resulted in some late nights), but the hard work and many man years of effort by Microsoft's .NET Framework and XML messaging teams. Several other companies and talented individuals, such as Sam Ruby from IBM have also been critical in taking this technology to the masses.
But it begs the question: why have so many people, and so much money, been poured into this technology? Why is Web services perceived by Microsoft and many others as a huge, and potentially industry changing pieces of work? This book can't possibly give a complete answer. But, I've tried to deliver to you the most important pieces of information I can about Web services, specifically those built with .NET. By doing do, my hope is that you too can see how wonderful this technology is.
Most books on Web Services have focused on specific technologies, and how to use those class libraries to build services and clients. Some of the better ones have attempted to give an overview of SOAP and WSDL and other technologies. What are Web Services? Why do they exist?
I can't answer those questions completely, but I can help people better understand the technology in general, and thereby design and architect better Web Services. I've tried to present the material in a way that makes obvious the reasons for their existence.
Of course, as the Program Manager for Web Services built with Microsoft's .NET Framework, I feel compelled to show off a little. I truly feel that I have helped build the best Web Services technology around. And I think it appropriate to take you through the major features of this technology. Most of the code samples will also use C# and ASP.NET Web Services.
I've tried to design this book to be read front to back, or randomly. Each chapter builds on previous chapters, however most chapters can be read stand-alone and still be useful.
This book consists of 15 chapters. Chapters 1 and 2 explain what Web services are, and the standards that make up the Web services world. Chapter 3 through 6 are an in depth view of how the .NET Framework allows developers to build Web service applications. Chapters 7 through 14 take a step back and drill into the specifications (from HTTP to SOAP to WS-Security) that make up the Web services architecture. Finally, Chapter 15 delivers a few words of advice about architecting and designing Web services applications.
Capitalism is the political system based on the recognition of individual rights, including property rights. It is the most productive political system in history. Of all modern industries, the computer business most vividly reflects the benefits of capitalism, and on average it has enjoyed free capital and employment flows and comparatively little regulation. This has made it a home for entrepreneurs and others who think out of the box—innovators in products, marketing, finance, distribution, and corporate organization. The computer business never stands still, and it shatters all conservative estimates of its possibilities.
In 1943, Thomas Watson, then chairman of IBM, said famously, "I think there is a market for maybe five computers on the world market." This made sense, if one's sights were set on the computers of that era: so large and expensive to buy and maintain that only the biggest institutions with the most urgent needs could justify them.
Undaunted, inventors created a stream of new technologies, while entrepreneurs and capitalists built new businesses around them. By the 1960s, led by Remington Rand and others and eventually including IBM, computers became small and cheap enough that businesses could afford to buy a "mainframe" computer for centralized bookkeeping. In the 1970s, inventions in semiconductor technology resulted in the creation of minicomputers. Companies such as DEC decisively broke both the mainframe prices and the centralized model, thereby enabling departments and small groups to own a computer. Then came the integrated circuit, venture capital, Intel, Microsoft, and the personal computer revolution of the 1980s. Forevermore, most computers would be small, inexpensive, and dedicated to individual use. During the 1990s, deregulation unlocked prior investment and innovation in telecommunications. Communication became integrated into the computing fabric, as rapidly dropping bandwidth costs enabled the central computers to take on a new role of serving constellations of personal computers.
Browser-based computing, typified by the World Wide Web, was hugely successful, yet it addressed only one style of computing, namely, remote computers interacting immediately with humans. It did not exploit the possibilities of widely decentralized, personal computing. The inventions that created the World Wide Web—inexpensive computers, cheap communications, extensible protocol formats, and protocol-based, asynchronous, failure-tolerant coupling—have not yet been widely applied to computers that interact, on behalf of humans, directly with other computers.
That is about to change. In 1996, XML (eXtensible Markup Language) was created, and within a few years, it was applied to the invention of SOAP (Simple Object Access Protocol) and XMLWeb Services. Definition: An XML Web service is a computational resource defined solely in terms of the functions it performs, interacting through protocols using XML, SOAP, and WSDL and not presuming the presence of a human as one of the parties to the interaction.
Pursuing fun and profit, business and technical innovators have created invention after exciting invention. You are about to read the story and details of one of the latest, written by a man who played a key role in making XMLWeb Services broadly available.
Click below to download the Index file related to this title: