ReportExecutionService.ListSecureMethods Method ()

 

Applies To: SQL Server 2016 Preview

Returns a list of SOAP methods that require a secure (SSL) connection when invoked.

Namespace:   ReportExecution2005
Assembly:  ReportExecution2005 (in ReportExecution2005.dll)

Syntax

public string[] ListSecureMethods()
public:
array<String^>^ ListSecureMethods()
member ListSecureMethods : unit -> string[]
Public Function ListSecureMethods As String()

Return Value

Type: System.String[]

An array of String objects that represent the names of methods. If no SOAP methods require SSL connections, an empty array is returned.

Remarks

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

None

SharePoint Mode Required Permissions

None

The SecureConnectionLevel setting for the report server determines the list of SOAP methods that are returned by the ListSecureMethods method. For more information, see Using Secure Web Service Methods.

Examples

Legacy Code Example

To compile this code example, you must reference the Reporting Services WSDL and import certain namespaces. For more information, see . The following code example uses the ListSecureMethods method to retrieve the methods that currently require a secure connection:Unable to find linked topic '317946aa-8e95-4f0b-8170-394c9d5e184e'.

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);
         }
      }
   }
}

See Also

ReportExecutionService Class
ReportExecution2005 Namespace
RSReportServer Configuration File

Return to top