June 2002
Intermediate to advanced
816 pages
28h 12m
English
ServiceDescriptionImporter
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.
Public Class ServiceDescriptionImporter ' Public Constructors Public Sub New() ' Public Instance Properties Public Property ProtocolName As String Public ReadOnly Property Schemas As XmlSchemas Public ReadOnly Property ServiceDescriptions As ServiceDescriptionCollection Public Property Style As ServiceDescriptionImportStyle ' Public Instance Methods Public Sub AddServiceDescription( ByVal serviceDescription As ServiceDescription, ByVal appSettingUrlKey As String, ByVal appSettingBaseUrl As String) Public Function Import( ByVal codeNamespace As System.CodeDom.CodeNamespace, ByVal codeCompileUnit As System.CodeDom.CodeCompileUnit) As_ ServiceDescriptionImportWarnings End Class
Read now
Unlock full access