System.Web.Services.Description.ServiceDescriptionImporter.GenerateWebReferences Method

Compiles a collection of Web references to produce a client proxy or a server stub.

Syntax

public static System.Collections.Specialized.StringCollection GenerateWebReferences (WebReferenceCollection webReferences, System.CodeDom.Compiler.CodeDomProvider codeGenerator, System.CodeDom.CodeCompileUnit codeCompileUnit, WebReferenceOptions options)

Parameters

codeGenerator
Documentation for this section has not yet been entered.
webReferences
A System.Web.Services.Description.WebReferenceCollection of Web references to compile.
codeCompileUnit
A System.CodeDom.CodeCompileUnit that specifies the unit into which code is compiled.
options
A System.Web.Services.Description.WebReferenceOptions that specifies code generation options.

Returns

A System.Collections.Specialized.StringCollection of compiler warnings.

Remarks

The services description document collection in each System.Web.Services.Description.WebReference member of the webReferences collection should contain only System.Web.Services.Description.ServiceDescription and System.Xml.Schema.XmlSchema objects. This method is unable to interpret System.Web.Services.Discovery.DiscoveryDocument objects.

If any of the XML Web service methods in the webReferences collection share custom parameter or return types, those types are also shared among the proxy methods generated. This is an important advantage over the situation in which each proxy is compiled separately, because in that case such types do not interoperate.

Requirements

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