ReportingService2005.ListSecureMethods 메서드

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

네임스페이스:  ReportService2005
어셈블리:  ReportService2005(ReportService2005.dll)

public string[] ListSecureMethods()

반환 값

유형: System.String[]
An array of String objects containing the names of methods that require a secure connection.

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

SOAP Headers

(Out) ServerInfoHeaderValue

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 보안 웹 서비스 메서드 사용.

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:

using System;

class Sample
{
   public static void Main()
   {
      ReportingService2005 rs = new ReportingService2005();
      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.

커뮤니티 추가 항목

추가
표시: