System.Runtime.Remoting.MetadataServices.MetaData.ConvertSchemaStreamToCodeSourceStream Method

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.

Syntax

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

Parameters

clientProxy
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.
outputDirectory
The directory where the new C# source code files with the proxy are created.
inputStream
The input stream containing the schema definition in Web Services Description Language (WSDL) format.
outCodeStreamList
The list of file names for the code streams that are generated. Note that the MetaData.ConvertSchemaStreamToCodeSourceStream(bool, string, System.IO.Stream, ArrayList, string, string) method can create multiple source code streams.
proxyUrl
The URL where the target remote object that is represented by the new proxy will be located.
proxyNamespace
The namespace of the newly created proxy.

Remarks

Note:

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

Requirements

Namespace: System.Runtime.Remoting.MetadataServices
Assembly: System.Runtime.Remoting (in System.Runtime.Remoting.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0