WebServiceTaskUtil Class

Definition

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.

public ref class WebServiceTaskUtil
public class WebServiceTaskUtil
type WebServiceTaskUtil = class
Public Class WebServiceTaskUtil
Inheritance
WebServiceTaskUtil

Remarks

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.

Constructors

WebServiceTaskUtil(Object, String)

Initializes a new instance of the WebServiceTaskUtil class, initializing the HTTP connection and Web Services Description Language (WSDL) file to download.

Methods

CleanUp()

Releases all the resources used to parse the Web Services Description Language (WSDL) and invoke the Web method.

GetServices()

Returns an array that contains all the services available in the Web Services Description Language (WSDL).

GetWebMethodInfos(String)

Gets an array that contains all the methods available in a service.

Invoke(DTSWebMethodInfo, String, Object, VariableDispenser)

Calls the specified Web method with the supplied parameters.

Applies to