ServiceDescription.Write Method (Stream)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Writes out the ServiceDescription to the specified Stream.

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

public void Write(
	Stream stream
)

Parameters

stream
Type: System.IO.Stream

A Stream, passed by reference, which contains the Web Services Description Language (WSDL) file produced.

FileStream myFileStream = new FileStream("output.wsdl",
   FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter myStreamWriter = new StreamWriter(myFileStream);

// Write the WSDL.
Console.WriteLine("Writing a new WSDL file.");
myServiceDescription.Write(myStreamWriter);
myStreamWriter.Close();
myFileStream.Close();

.NET Framework
Available since 1.1
Return to top
Show: