Use this web service to sign in to a project and obtain an authorization key for the other ALM web services.
Protocol: SOAP, WebService
Link: http://<host>/api/securityservice
WSDL description (document/literal): http://<host>/api/securityservice?wsdl
WSDL description (rpc/encoded): http://<host>/api/securityservice?wsdl&style=rpc&use=encoded
| Name | Return value | Purpose |
|---|---|---|
|
login (string userName, string userPassword, string projectName) |
Token |
Signs the user in to the project.
Returns an object that contains authorization data. |
| Name | Attribute | Purpose |
|---|---|---|
|
Token |
Key |
Key used to authorize the user when web service methods are called. |
// авторизуемся в проекте
security.SecurityService api = new security.SecurityService() {
Url = 'http://<host>/api/securityservice'
};
security.Token _token = api.login("guest", "guest", "development");