ServiceDescription.Write Method (XmlWriter)

Writes out the ServiceDescription to the XmlWriter as a Web Services Description Language (WSDL) file.

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

public:
void Write (
	XmlWriter^ writer
)
public void Write (
	XmlWriter writer
)
public function Write (
	writer : XmlWriter
)
Not applicable.

Parameters

writer

An XmlWriter, passed by reference, which contains the WSDL file produced.

// Create a new XmlTextWriter object.
XmlTextWriter^ myWriter = gcnew XmlTextWriter( "output.wsdl",Encoding::UTF8 );
myWriter->Formatting = Formatting::Indented;

// Write the WSDL.
myServiceDescription->Write( myWriter );

// Create a new XmlTextWriter object.
XmlTextWriter myWriter = 
    new XmlTextWriter("output.wsdl", Encoding.get_UTF8());
myWriter.set_Formatting(Formatting.Indented);

// Write the WSDL.
myServiceDescription.Write(myWriter);

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: