ReportingService2010.LogonUser(String, String, String) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ユーザーにログインし、Report Server Webサービスへのユーザーリクエストを認証します。 この方法はネイティブモードにのみ適用されます。
public:
void LogonUser(System::String ^ userName, System::String ^ password, System::String ^ authority);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/LogonUser", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void LogonUser(string userName, string password, string authority);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/LogonUser", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.LogonUser : string * string * string -> unit
Public Sub LogonUser (userName As String, password As String, authority As String)
パラメーター
- userName
- String
ユーザーの名前。
- password
- String
ユーザーのパスワード。
- authority
- String
Optional.ユーザー認証時に使用するドメイン名。 この議論を省くためにnull(Nothing in Visual Basic)の値を渡します。
- 属性
注釈
以下の表は、この操作のヘッダーおよび権限情報を示しています。
| SOAPヘッダーの使用 | (イン) TrustedUserHeaderValue (アウト) ServerInfoHeaderValue |
| ネイティブモードの必要権限 | None |
| SharePointモードの必要権限 | サポートしていません |
このメソッドはSharePointモードで呼び出した際にOperationNotSupportedSharePointMode例外を投げます。
この方法は、カスタム認証が設定された際に指定されたユーザーをレポートサーバーのWebサービスに認証します。
この方法はSecure Sockets Layer(SSL)経由で呼び出される必要があります。 このメソッドは安全に呼び出されなければ失敗します。 認証が成功すると、Report Server Webサービスは認証クッキーを生成し、HTTPSヘッダーにクッキーを返します。 応答はSSL経由で返されます。