ReportingService2006.ListSecureMethods 메서드

정의

호출될 때 암호화된 채널이 필요한 SOAP 메서드 목록을 반환합니다.

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

반환

String[]

암호화된 채널이 필요한 메서드의 이름을 포함하는 String 개체의 배열입니다.

예제

using System;  
using System.Collections.Generic;  
using System.IO;  
using System.Text;  
using System.Web;  
using System.Web.Services;  
using System.Web.Services.Protocols;  

class Sample  
{  
    static void Main(string[] args)  
    {  
        ReportingService2006 rs = new ReportingService2006();  
        rs.Url = "http://<Server Name>/_vti_bin/ReportServer/" +  
            "ReportService2006.asmx";  
        rs.Credentials =   
            System.Net.CredentialCache.DefaultCredentials;  

        string[] methods = rs.ListSecureMethods();  

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

[Visual Basic]

Imports System  
Imports System.IO  
Imports System.Text  
Imports System.Web.Services  
Imports System.Web.Services.Protocols  

Class Sample  

    Public Shared Sub Main()  

        Dim rs As New ReportingService2006()  
        rs.Url = "http://<Server Name>/_vti_bin/ReportServer/" + _  
            "ReportService2006.asmx"  
        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  

End Class  

설명

다음 표에서는 이 작업에 대한 헤더 및 사용 권한 정보를 보여 줍니다.

SOAP 헤더 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
필요한 권한 없음

보고서 서버에 대한 설정은 SecureConnectionLevel 메서드에서 반환 ListSecureMethods 되는 SOAP 메서드 목록을 결정합니다. 자세한 내용은 Using Secure Web Service Methods을 참조하세요.

적용 대상