ReportExecutionService.ListSecureMethods Yöntemi
Güvenli (ssl) bağlantı çağrıldığında gerektiren soap yöntemleri listesini döndürür.
Ad Alanı: ReportExecution2005
Derleme: ReportExecution2005 (ReportExecution2005 içinde.dll)
Sözdizimi
'Bildirim
<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)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function ListSecureMethods As String()
'Kullanım
Dim instance As ReportExecutionService
Dim returnValue As String()
returnValue = instance.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)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
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)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
array<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)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member ListSecureMethods : unit -> string[]
public function ListSecureMethods() : String[]
Dönüş Değeri
Tür: array<System.String[]
Bir dizi dize yöntemlerin adlarını temsil eden nesneler.Hiçbir soap yöntemleri ssl bağlantıları gerektiriyorsa, boş bir dizi döner.
Açıklamalar
Aşağıdaki tablo üstbilgi ve izinler bu işlemi gösterir.
soap üstbilgisi kullanımı |
(Giden)ServerInfoHeaderValue |
Yerel mod gerekli izinleri |
Hiçbiri |
SharePoint modu gerekli izinleri |
Hiçbiri |
SecureConnectionLevel rapor sunucusu tarafından döndürülen soap yöntemleri listesini belirleyen ayarı ListSecureMethods yöntem.Daha fazla bilgi için, bkz. Güvenli Web hizmeti yöntemlerini kullanma.
Örnekler
Bu kod örneği derlemek için başvuru gerekir Reporting Services wsdl ve belirli ad alanları almakDaha fazla bilgi için, bkz. Compiling and Running Code Examples.Aşağıdaki kod örneği ListSecureMethods yöntem güvenli bağlantı gerektiren yöntemleri almak için:
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);
}
}
}
}
Ayrıca bkz.