ReportExecutionService.ListSecureMethods メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
呼び出し時にセキュア(SSL)接続が必要なSOAPメソッドのリストを返します。
public:
cli::array <System::String ^> ^ ListSecureMethods();
public string[] ListSecureMethods();
member this.ListSecureMethods : unit -> string[]
Public Function ListSecureMethods () As String()
返品
メソッドの名前を表す String オブジェクトの配列です。 もしSOAPメソッドでSSL接続を必要としない場合、空の配列が返されます。
例
このコード例をコンパイルするには、Reporting Services WSDLを参照し、特定の名前空間をインポートする必要があります。 詳細については 、「コード例のコンパイルと実行」をご覧ください。 以下のコード例は、現在安全な接続が必要なメソッドを取得するために ListSecureMethods メソッドを使用しています。
Imports System
Class Sample
Public Shared Sub Main()
Dim rs As New ReportExecutionService()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
' Set the base Web service URL of the source server
rs.Url = "http://servername/reportserver/ReportExecution2005.asmx"
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 'Main
End Class 'Sample
using System;
class Sample
{
public static void Main()
{
ReportingService rs = new ReportExecutionService();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Set the base Web service URL of the source server
rs.Url = "http://servername/reportserver/ReportExecution2005.asmx";
string[] methods = rs.ListSecureMethods();
if (methods != null)
{
foreach (string method in methods)
{
Console.WriteLine(method);
}
}
}
}
注釈
以下の表は、この操作のヘッダーおよび権限情報を示しています。
| SOAPヘッダーの使用 | (イン) TrustedUserHeaderValue (アウト) ServerInfoHeaderValue |
| ネイティブモードの必要権限 | None |
| SharePointモードの必要権限 | None |
レポートサーバーの SecureConnectionLevel 設定は、 ListSecureMethods メソッドが返すSOAPメソッドのリストを決定します。 詳細については 、「安全なWebサービス手法の使用」をご覧ください。