
586
|
Chapter 32: The System.Web.Services.Description Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
ServiceDescriptionImporter
System.Web.Services.Description (system.web.services.dll)
class
The ServiceDescriptionImporter is used to programmatically create a proxy class for a web
service. Clients invoke web service methods by creating an instance of the proxy class
and invoking the corresponding method on the proxy class.
To create a proxy class, first use the AddServiceDescription( ) method to add a ServiceDescription
to the ServiceDescriptions collection. Then create the proxy class with the Import( ) method.
When using the AddServiceDescription( ) method, use the appSettingUrlKey and appSettingBaseUrl
parameters to specify how the Url property will be generated for the web service proxy
class.
ServiceDescriptionImportStyle
System.Web.Services.Description (system.web.services.dll)
serializable
enum
This enumeration is used for the ServiceDescriptionImporter.Style property; it specifies whether
a ServiceDescriptionImporter.Import( ) method call will be made to the server or client. When
you import to the client computer, you will receive a proxy class with synchronous
and asynchronous methods for invoking each method within the web service, just as if
.NET generated the proxy class for you automatically. A server import,