Starts a explicit transaction for the current session.
Usually transactions are started and committed for each call to the
webservice, but if a transaction has been started explicitly it also
has to be terminated using endTransaction.
This method works for both Teamcenter Security Services SSO
and Personal Access Tokens (since Polarion 3.22.1).
Possible (case insensitive) values for the mechanism parameters: TcSS
and AccessToken.
This will NOT work for the other SSO methods supported by Polarion.
(Kerberos, SAML, or OAuth2.)
For SAML, OAuth2 (or deprecated Kerberos), you should use the SessionWebService.logIn(username,
password) method (LDAP configuration should be enabled for web services)
or use an access token.
Parameters:
mechanism - the mechanism that the client requests for authentication.
If the TcSS mechanism is used, the server must be configured for TcSS.
(Otherwise, the login with this mechanism will be rejected.) AccessToken
is always accepted.
username - the name of the user to login. Required for TcSS.
null for AccessToken