ServiceDescription::Read Method (XmlReader^)
.NET Framework (current version)
Initializes an instance of the ServiceDescription class by directly loading the XML from an XmlReader.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- reader
-
Type:
System.Xml::XmlReader^
An XmlReader, passed by reference, which contains the XML data to be read.
Return Value
Type: System.Web.Services.Description::ServiceDescription^An instance of the ServiceDescription.
// 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
Available since 1.1
Show: