Siebel Analytics Web Administration Guide > Working with Data and Managing the Web Catalog Using Siebel Analytics Web SOAP API > Description of Siebel Analytics Web SOAP API Methods >

SAWSessionService


Defines authentication services such as logon and logoff, and other session-related services. Table 50 shows the supported methods.

Table 50. SAWSessionService Methods
Method Name
Description

getCurUser() Method

Gets the current user ID for the session.

impersonate() Method

Logs on and then impersonates the user.

impersonateex() Method

Logs on and then impersonates the user. Similar to the impersonate method, but impersonateex can specify optional session parameters.

keepAlive() Method

Instructs Siebel Analytics Web not to end particular sessions due to inactivity.

logoff() Method

Logs the user off Siebel Analytics Web.

logon() Method

Authenticates the user.

logonex() Method

Authenticates the user. Similar to the logon method, but logonex can specify optional session parameters.

getCurUser() Method

The getCurUser() method gets the current user name for the session.

Signature

String getCurUser(String sessionID);

Argument
Description

String sessionID

A character string that identifies the session ID. The session ID is usually returned by the logon call. If the SOAP client engine can handle HTTP cookies, you can omit the session ID or set it to null.

Returns

Returns a string indicating the current user name for the session.

impersonate() Method

The impersonate() method in the SAWSessionService service logs on and impersonates the user. This method is useful when you need to create sessions for multiple users and have only the administrator's name and password. You do not need to use the (logon) method if you use the impersonate() method.

If user authentication or impersonation fails, an exception is thrown.

Signature

String impersonate(String name, String password, String impersonateID);

Arguments
Description

String name

A character string that contains the user name to log on and authenticate.

String password

A character string that contains the password for the user. If there is no password for the user, leave this field empty (void).

String impersonateID

A character string that contains the user name to impersonate the authenticated user.

Returns
This method returns the session ID and sets an HTTP session cookie. The session ID is used in other SOAP API calls to identify your SOAP session.

impersonateex() Method

The impersonateex() method in the SAWSessionService service logs on and impersonates the user. Similar to the impersonate method, but impersonateex can specify optional session parameters. This method is useful when you need to create sessions for multiple users and have only the administrator's name and password. You do not need to use the (logon) method if you use the impersonateex() method.

If user authentication or impersonation fails, an exception is thrown.

Signature

String impersonateex(String name, String password, String impersonateID, SAWSessionParameters sessionparams);

Arguments
Description

String name

A character string that contains the user name to log on and authenticate.

String password

A character string that contains the password for the user. If there is no password for the user, leave this field empty (void).

String impersonateID

A character string that contains the user name to impersonate the authenticated user.

SAWSessionParameters sessionparams

Optional. The sessionparams to use, supplied in the SAWSessionParameters structure. For information about the SAWSessionParameters structure, see SAWSessionParameters Structure.

Returns
This method returns the session ID and sets an HTTP session cookie. The session ID is used in other SOAP API calls to identify your SOAP session.

keepAlive() Method

The keepAlive() method instructs Siebel Analytics Web not to end particular Siebel Analytics Web user sessions due to inactivity. The effect of this call on session lifetime is the same as if those users performed an activity in the browser such as clicking a report, or invoking a SOAP call. For more information about ending Siebel Analytics Web user sessions due to inactivity, see Setting the Time to Log Users Off Siebel Analytics Web Automatically.

Signature

void keepAlive(String[] sessionIDs);

Argument
Description

String[] sessionIDs

An array of character strings that contains the session IDs to remain logged on.

logoff() Method

The logoff() method logs the user off Siebel Analytics Web.

Signature

void logoff(String sessionID);

Argument
Description

String sessionID

A string value that contains the session ID to log off from the SOAP session. The session ID is usually returned by the logon call. If the SOAP client engine can handle HTTP cookies, you can omit the session ID or set it to null.

logon() Method

The logon() method authenticates the user. If authentication fails, an exception is thrown.

Signature

String logon(String username, String password)

Arguments
Description

String username

A character string that contains the user name to authenticate.

String password

A character string that contains the password for the user. If there is no password, leave this field empty (void).

Returns
This method returns the session ID and sets an HTTP session cookie. The session ID is used in other SOAP API calls to identify your SOAP session.

logonex() Method

The logonex() method authenticates the user. Similar to the logon method, but logonex can specify optional session parameters. If authentication fails, an exception is thrown.

Signature

String logonex(String username, String password, SAWSessionParameters sessionparams);

Arguments
Description

String username

A character string that contains the user name to authenticate.

String password

A character string that contains the password for the user. If there is no password, leave this field empty (void).

SAWSessionParameters sessionparams

Optional. The sessionparams to use, supplied in the SAWSessionParameters structure. For information about the SAWSessionParameters structure, see SAWSessionParameters Structure.

Returns

This method returns the session ID and sets an HTTP session cookie. The session ID is used in other SOAP API calls to identify your SOAP session.

Siebel Analytics Web Administration Guide