Name
ServiceDescriptionImporter
Synopsis
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
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.