
582
|
Chapter 32: The System.Web.Services.Description Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.Collections.CollectionBase(System.Collections.IList, System.Collec-
tions.ICollection, System.Collections.IEnumerable)
➝ ServiceDescriptionBaseCollection ➝
ServiceCollection
Returned By
ServiceDescription.Services
ServiceDescription
System.Web.Services.Description (system.web.services.dll)
sealed class
The ServiceDescription class represents a valid WSDL document, complete with appro-
priate namespaces, elements, and attributes. The elements of the WSDL file are all
represented by other, distinct classes in the System.Web.Services.Description namespace, and
provided through the properties of the ServiceDescription class. At the top level, a WSDL
document contains a series of definitions in a <definitions> element. These definitions
define Types, Message, PortType, Binding, and Service elements.
The ServiceDescription class also provides a Read( ) and Write( ) method. Both methods are
overloaded to allow you to serialize information to or from a System.IO.Stream,aSystem.IO.
TextReader,aSystem.IO.TextWriter,aSystem.Xml.XmlReader,aSystem.Xml.XmlWriter, or a string
containing a fully qualified path and filename.
There are three ways to create a ServiceDescription object. You can use the New keyword ...