ReportingService2006.ListSecureMethods 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一份需要加密通道的 SOAP 方法清單。
public:
cli::array <System::String ^> ^ ListSecureMethods();
public string[] ListSecureMethods();
member this.ListSecureMethods : unit -> string[]
Public Function ListSecureMethods () As String()
傳回
String[]
一組 String 包含需要加密通道的方法名稱的物件陣列。
範例
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
class Sample
{
static void Main(string[] args)
{
ReportingService2006 rs = new ReportingService2006();
rs.Url = "http://<Server Name>/_vti_bin/ReportServer/" +
"ReportService2006.asmx";
rs.Credentials =
System.Net.CredentialCache.DefaultCredentials;
string[] methods = rs.ListSecureMethods();
if (methods != null)
{
foreach (string method in methods)
{
Console.WriteLine(method);
}
}
}
}
[視覺基礎]
Imports System
Imports System.IO
Imports System.Text
Imports System.Web.Services
Imports System.Web.Services.Protocols
Class Sample
Public Shared Sub Main()
Dim rs As New ReportingService2006()
rs.Url = "http://<Server Name>/_vti_bin/ReportServer/" + _
"ReportService2006.asmx"
rs.Credentials = _
System.Net.CredentialCache.DefaultCredentials
Dim methods As String() = rs.ListSecureMethods()
If Not (methods Is Nothing) Then
Dim method As String
For Each method In methods
Console.WriteLine(method)
Next method
End If
End Sub
End Class
備註
下表顯示此操作的標頭與權限資訊。
| SOAP 標頭 | (在) TrustedUserHeaderValue (出局) ServerInfoHeaderValue |
| 必要權限 | None |
報告伺服器的 SecureConnectionLevel 設定決定了該 ListSecureMethods 方法回傳的 SOAP 方法清單。 欲了解更多資訊,請參閱 使用安全網路服務方法。