Name
ServiceDescription
Synopsis
The ServiceDescription
class represents a valid WSDL document, complete with appropriate
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
serialize information to or from a System.IO.Stream,
a System.IO.TextReader, a System.IO.TextWriter, a System.Xml.XmlReader, a System.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 and create one manually, you
can use the ServiceDescriptionReflector
to create one from a live web service, or you can
use the shared Read()
method to create one from a WSDL file.
For example, you can create a ServiceDescription
object with all its fully populated subobjects by using a syntax like MyServiceDesc = ServiceDescription.Read("MyFile.xml").
Public NotInheritable Class ServiceDescription : Inherits DocumentableItem ' Public Constructors Public Sub New() ' Public Shared Fields public const Namespace As String // =http://schemas.xmlsoap.org/wsdl/ ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access