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.
繼承階層
System.Object
Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil
命名空間: Microsoft.SqlServer.Dts.Tasks.WebServiceTask
組件: Microsoft.SqlServer.WebServiceTask (在 Microsoft.SqlServer.WebServiceTask.dll 中)
語法
'宣告
Public Class WebServiceTaskUtil
'用途
Dim instance As WebServiceTaskUtil
public class WebServiceTaskUtil
public ref class WebServiceTaskUtil
type WebServiceTaskUtil = class end
public class WebServiceTaskUtil
WebServiceTaskUtil 型別公開下列成員。
建構函式
| 名稱 | 說明 | |
|---|---|---|
![]() |
WebServiceTaskUtil | Initializes a new instance of the WebServiceTaskUtil class, initializing the HTTP connection and Web Services Description Language (WSDL) file to download. |
上層
方法
| 名稱 | 說明 | |
|---|---|---|
![]() |
CleanUp | Releases all the resources used to parse the Web Services Description Language (WSDL) and invoke the Web method. |
![]() |
Equals | (繼承自 Object。) |
![]() |
Finalize | (繼承自 Object。) |
![]() |
GetHashCode | (繼承自 Object。) |
![]() |
GetServices | Returns an array that contains all the services available in the Web Services Description Language (WSDL). |
![]() |
GetType | (繼承自 Object。) |
![]() |
GetWebMethodInfos | Gets an array that contains all the methods available in a service. |
![]() |
Invoke | Calls the specified Web method with the supplied parameters. |
![]() |
MemberwiseClone | (繼承自 Object。) |
![]() |
ToString | (繼承自 Object。) |
上層
備註
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.
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
.gif)
.gif)