IgetInterchangeAccessSession()

Creates an access session to InterChange Server for the access client.

Syntax

IInterchangeAccessSession IgetInterchangeAccessSession( 
     string userName, string password);

Parameters

userName
The name of the IBM WebSphere InterChange Server user.

password
The IBM WebSphere InterChange Server password for the user.

Return Values

An IInterchangeAccessSession object for the access session.

Exceptions

ICxAccessError
Thrown when an invalid user name or password is encountered.

Notes

The IgetInterchangeAccessSession() method verifies that userName and password are valid for the ICS instance.

Important:
The user name for this method must be admin.

Example

// Open the access session
String userName = "admin";
String password = "null";
IInterchangeAccessSession aSession = 
     serverAccessEngine.IgetInterchangeAccessSession(
     userName,
     password);

Copyright IBM Corp. 1997, 2004