次の方法で共有


ReportExecutionService.ListSecureMethods メソッド

定義

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

public:
 cli::array <System::String ^> ^ ListSecureMethods();
public string[] ListSecureMethods ();
member this.ListSecureMethods : unit -> string[]
Public Function ListSecureMethods () As String()

戻り値

String[]

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

このコード例をコンパイルするには、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 ヘッダーの使用方法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
ネイティブ モードで必要なアクセス許可 なし
SharePoint モードに必要なアクセス許可 なし

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

適用対象