IgetInterchangeAccessSession()

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

Syntax

IInterchangeAccessSession IgetInterchangeAccessSession( 
     string userName, string password);

Parameters

userName
The name of the IBM WebSphere Business Integration Server Express user.
password
The IBM WebSphere Business Integration Server Express 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 InterChange Server Express 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. 2004, 2005