Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ListSecureMethods Method

SQL Server 2000

ReportingService.ListSecureMethods Method

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

Public Function ListSecureMethods As String()
   Member of [Namespace].ReportingService

public string[] ListSecureMethods()
   Member of [Namespace].ReportingService
Return Value

An array of String objects that represent the names of methods.

Remarks

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.

Example

To compile this code example, you must reference the Reporting Services WSDL and import certain namespaces. For more information, see Compiling and Running Code Examples. The following code example uses the ListSecureMethods method to retrieve the methods that currently require a secure connection:

Imports System

Class Sample
   Public Shared Sub Main()
      Dim rs As New ReportingService()
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials
      
      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 ReportingService();
      rs.Credentials = System.Net.CredentialCache.DefaultCredentials;

      string[] methods = rs.ListSecureMethods();

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

The SecureConnectionLevel configuration file setting determines the list of methods that are returned. If SecureConnectionLevel is set to 1, this code example writes the following output to the console:

CreateReport
GetReportDefinition
SetReportDefinition
CreateDataSource
GetDataSourceContents
SetDataSourceContents
SetReportDataSources
GetReportDataSources
CreateDataDrivenSubscription
SetDataDrivenSubscriptionProperties
GetDataDrivenSubscriptionProperties
PrepareQuery
See Also

ReportingService Class

Reporting Services Web Service Library

Show:
© 2015 Microsoft