This documentation is archived and is not being maintained.

ServiceDescriptionImporter.GenerateWebReferences Method

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

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

public static StringCollection GenerateWebReferences (
	WebReferenceCollection webReferences,
	CodeDomProvider codeProvider,
	CodeCompileUnit codeCompileUnit,
	WebReferenceOptions options
)
public static StringCollection GenerateWebReferences (
	WebReferenceCollection webReferences, 
	CodeDomProvider codeProvider, 
	CodeCompileUnit codeCompileUnit, 
	WebReferenceOptions options
)
public static function GenerateWebReferences (
	webReferences : WebReferenceCollection, 
	codeProvider : CodeDomProvider, 
	codeCompileUnit : CodeCompileUnit, 
	options : WebReferenceOptions
) : StringCollection
Not applicable.

Parameters

webReferences

A WebReferenceCollection of Web references to compile.

codeProvider

A CodeDomProvider that specifies the code provider.

codeCompileUnit

A CodeCompileUnit that specifies the unit into which code is compiled.

options

A WebReferenceOptions that specifies code generation options.

Return Value

A StringCollection of compiler warnings.

The services description document collection in each WebReference member of the webReferences collection should contain only ServiceDescription and XmlSchema objects. This method is unable to interpret 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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: