Авторизация пользователя с правами Администратора системы от имени другого Пользователя
URL: components/services/login.asmx
Метод: AuthenticateByUser
Передаваемые параметры
| Параметр | Описание |
|---|---|
PersonId* | Идентификатор (GUID) Пользователя Системы, от имени которого нужно авторизоваться |
login | Логин Администратора Системы |
password | Пароль Администратора Системы |
<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:str="http://streamline/"> <soapenv:Header/> <soapenv:Body> <str:AuthenticateByUser> <str:login>string</str:login> <str:password>string</str:password> <str:personId>guid</str:personId> </str:AuthenticateByUser> </soapenv:Body> </soapenv:Envelope>
Возвращаемый параметр
| Параметр | Описание |
|---|---|
ASPNETSessionId | Идентификатор (GUID) сессии Пользователя Системы |
<?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <AuthenticateByUserResponse xmlns="http://streamline/"> <AuthenticateByUserResult xmlns:a="http://schemas.datacontract.org/2004/07/SL.Web.Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:ASPNETSessionId>string</a:ASPNETSessionId> <a:ErrorMessage/>string</ErrorMessage> </AuthenticateByUserResult> </AuthenticateByUserResponse> </s:Body> </s:Envelope>