MetaData.ConvertSchemaStreamToCodeSourceStream Method (Boolean, String, Stream, ArrayList, String, String)


Converts the specified schema definition into C# proxy source code for a remote object that is located at the specified URL and in the provided class namespace.

Namespace:   System.Runtime.Remoting.MetadataServices
Assembly:  System.Runtime.Remoting (in System.Runtime.Remoting.dll)

public static void ConvertSchemaStreamToCodeSourceStream(
	bool clientProxy,
	string outputDirectory,
	Stream inputStream,
	ArrayList outCodeStreamList,
	string proxyUrl,
	string proxyNamespace


Type: System.Boolean

Indicates the type of proxy to generate. If true, generates a simple proxy (also known as wrapped proxy) that automatically loads the channels, exposes all the methods of the remote object, and provides access to the channel properties. If false, generates a transparent proxy that exposes all the methods of the remote object.

Type: System.String

The directory where the new C# source code files with the proxy are created.

Type: System.IO.Stream

The input stream containing the schema definition in Web Services Description Language (WSDL) format.

Type: System.Collections.ArrayList

The list of file names for the code streams that are generated. Note that the ConvertSchemaStreamToCodeSourceStream method can create multiple source code streams.

Type: System.String

The URL where the target remote object that is represented by the new proxy will be located.

Type: System.String

The namespace of the newly created proxy.


If files with the specified names already exist, they are overwritten.

.NET Framework
Available since 1.1
Return to top