使用安全的 Web 服務方法Using Secure Web Service Methods

某些報表伺服器 Web 服務方法在叫用時,可能需要安全的連接。Certain Report Server Web service methods may require a secure connection when you invoke them. 需要安全連接的方法是由 RSReportServer.config 檔案中的 SecureConnectionLevel 設定所決定。The methods that require a secure connection are determined by the SecureConnectionLevel setting in the RSReportServer.config file. 設定值有效範圍為 0 及以上的整數值。The value of the setting is an integer value with a valid range of 0 and higher. 下表描述這些值。The following table describes these values.

層級Level 描述Description
00 不安全。Not secure. 對 Reporting Services SOAP API 的呼叫不需要安全連接。Calls made to the Reporting Services SOAP API do not require a secure connection.
大於 0Greater than 0 安全。Secure. 所有對 Reporting Services SOAP API 的呼叫都需要安全連接。All calls made to the Reporting Services SOAP API require a secure connection.

您可以使用 Web 服務的 ListSecureMethods 方法,根據報表伺服器目前的組態,傳回需要安全連接的 Web 服務方法清單。You can use the ListSecureMethods method of the Web service to return a list of Web service methods that require a secure connection according to the current configuration of the report server. 在 SSL 案例中,您應該評估 ListSecureMethods 傳回的方法清單,並視要呼叫的方法而定,將 Web 服務的配置名稱變更為 "https" 或 "http"。In an SSL scenario, you should evaluate the list of methods that are returned by ListSecureMethods and change the scheme name of the Web service URI to "https" or "http" depending on the method being called.

另請參閱See Also

使用 Web 服務和 .NET Framework 建置應用程式 Building Applications Using the Web Service and the .NET Framework
報表伺服器 Web 服務Report Server Web Service