ReportExecutionService.ListSecureMethods メソッド

呼び出し時に、セキュリティで保護された (SSL) 接続を要求する SOAP メソッドの一覧を返します。

名前空間:  ReportExecution2005
アセンブリ:  ReportExecution2005 (ReportExecution2005.dll)

構文

'宣言
Public Function ListSecureMethods As String()
'使用
Dim instance As ReportExecutionService 
Dim returnValue As String()

returnValue = instance.ListSecureMethods()
public string[] ListSecureMethods()
public:
array<String^>^ ListSecureMethods()
member ListSecureMethods : unit -> string[] 
public function ListSecureMethods() : String[]

戻り値

型: array<System.String[]
メソッドの名前を表す String オブジェクトの配列です。SSL 接続を必要とする SOAP メソッドがない場合は、空の配列が返されます。

説明

次の表に、この操作に関連するヘッダーおよび権限の情報を示します。

SOAP ヘッダーの使用方法

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

ネイティブ モードで必要な権限

なし

SharePoint モードで必要な権限

なし

レポート サーバーの SecureConnectionLevel 設定によって、ListSecureMethods メソッドから返される SOAP メソッドの一覧が決まります。 詳細については、「セキュリティで保護された Web サービス メソッドの使用」を参照してください。

使用例

このコード例をコンパイルするには、Reporting Services の WSDL を参照し、特定の名前空間をインポートする必要があります。 詳細については、「Compiling and Running Code Examples」を参照してください。 次のコード例では、現在セキュリティで保護された接続を必要としているメソッドを取得するために、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 = "https://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 = "https://servername/reportserver/ReportExecution2005.asmx";

      string[] methods = rs.ListSecureMethods();

      if (methods != null)
      {
         foreach (string method in methods)
         {
            Console.WriteLine(method);
         }
      }
   }
}

関連項目

参照

ReportExecutionService クラス

ReportExecution2005 名前空間

その他の技術情報

RSReportServer 構成ファイル