ServiceDescription::Read Method (XmlReader^)

 

Initializes an instance of the ServiceDescription class by directly loading the XML from an XmlReader.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
static ServiceDescription^ Read(
	XmlReader^ reader
)

Parameters

reader
Type: System.Xml::XmlReader^

An XmlReader, passed by reference, which contains the XML data to be read.

// Create a new XmlTextWriter with specified URL.
XmlTextReader^ myXmlReader = gcnew XmlTextReader( "All_CS.wsdl" );
ServiceDescription^ myServiceDescription = ServiceDescription::Read( myXmlReader );
myServiceDescription->TargetNamespace = "http://tempuri.org/";

// Remove the service named MathService.
ServiceCollection^ myServiceDescriptionCollection = myServiceDescription->Services;
myServiceDescriptionCollection->Remove( myServiceDescription->Services[ "MathService" ] );

.NET Framework
Available since 1.1
Return to top
Show: