This documentation is archived and is not being maintained.
ContractReference::WriteDocument Method
Visual Studio 2010
Writes the passed-in service description into the passed-in Stream.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- document
- Type: System::Object
The ServiceDescription to write into stream.
- stream
- Type: System.IO::Stream
The Stream into which the serialized ServiceDescription is written.
ContractReference^ myContractReference = gcnew ContractReference; FileStream^ myFileStream = gcnew FileStream( "TestOutput_cpp.wsdl", FileMode::OpenOrCreate,FileAccess::Write ); // Get the ServiceDescription for the test .wsdl file. ServiceDescription^ myServiceDescription = ServiceDescription::Read( "TestInput_cpp.wsdl" ); // Write the ServiceDescription into the file stream. myContractReference->WriteDocument( myServiceDescription, myFileStream ); Console::WriteLine( "ServiceDescription is written " + "into the file stream successfully." ); Console::WriteLine( "The number of bytes written into the file stream: {0}", myFileStream->Length ); myFileStream->Close();
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: