Partilhar via


Classe WebServiceTaskUtil

Accesses and invokes the Web services. This class is used by both the Microsoft.SqlServer.Dts.Tasks.WebServiceTask and its user interface as a reusable library of functions.

Hierarquia de herança

System. . :: . .Object
  Microsoft.SqlServer.Dts.Tasks.WebServiceTask..::..WebServiceTaskUtil

Namespace:  Microsoft.SqlServer.Dts.Tasks.WebServiceTask
Assembly:  Microsoft.SqlServer.WebServiceTask (em Microsoft.SqlServer.WebServiceTask.dll)

Sintaxe

'Declaração
Public Class WebServiceTaskUtil
'Uso
Dim instance As WebServiceTaskUtil
public class WebServiceTaskUtil
public ref class WebServiceTaskUtil
type WebServiceTaskUtil =  class end
public class WebServiceTaskUtil

O tipo WebServiceTaskUtil expõe os membros a seguir.

Construtores

  Nome Descrição
Método público WebServiceTaskUtil Initializes a new instance of the WebServiceTaskUtil class, initializing the HTTP connection and Web Services Description Language (WSDL) file to download.

Início

Métodos

  Nome Descrição
Método público CleanUp Releases all the resources used to parse the Web Services Description Language (WSDL) and invoke the Web method.
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetServices Returns an array that contains all the services available in the Web Services Description Language (WSDL).
Método público GetType (Herdado de Object.)
Método público GetWebMethodInfos Gets an array that contains all the methods available in a service.
Método público Invoke Calls the specified Web method with the supplied parameters.
Método protegido MemberwiseClone (Herdado de Object.)
Método público ToString (Herdado de Object.)

Início

Comentários

The WebServiceTaskUtil provides the functionality to do the following:

  • Download the Web Services Description Language (WSDL) from a given URL.

  • Retrieve services, methods, and parameters information from the WSDL.

  • Create the proxy class and generate an assembly from the proxy class, which is required for invoking the Web method.

  • Invoke the requested Web method on the proxy class using reflection.

The user interfaces that are designed for a task can use this WebServiceTaskUtil for displaying the services, methods, and parameters.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.