Share via


ReportExecutionService.ListSecureMethods Method

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

名前空間: Microsoft.WSSUX.ReportingServicesWebService.RSExecutionService2005
アセンブリ: ReportExecution2005 (reportexecutionservice.dll 内)

構文

'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListSecureMethods", RequestNamespace:="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace:="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction:=SoapHeaderDirection.Out)> _
Public Function ListSecureMethods As String()
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListSecureMethods", RequestNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction=SoapHeaderDirection.Out)] 
public string[] ListSecureMethods ()
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListSecureMethods", RequestNamespace=L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace=L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse::Literal, ParameterStyle=SoapParameterStyle::Wrapped)] 
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction=SoapHeaderDirection::Out)] 
public:
array<String^>^ ListSecureMethods ()
/** @attribute SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListSecureMethods", RequestNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped) */ 
/** @attribute SoapHeaderAttribute("ServerInfoHeaderValue", Direction=SoapHeaderDirection.Out) */ 
public String[] ListSecureMethods ()
SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/ListSecureMethods", RequestNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped) 
SoapHeaderAttribute("ServerInfoHeaderValue", Direction=SoapHeaderDirection.Out) 
public function ListSecureMethods () : String[]

戻り値

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

解説

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

使用例

このコード例をコンパイルするには、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 = "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);
         }
      }
   }
}

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

ReportExecutionService Class
ReportExecutionService Members
Microsoft.WSSUX.ReportingServicesWebService.RSExecutionService2005 Namespace

その他の技術情報

RSReportServer 構成ファイル