Invoking Reporting and Analysis and EPM Workspace Services

After you establish the connection to EPM Workspace and obtain a Session interface, use the returned Session to obtain access to the other interfaces that provide access to Reporting and Analysis services. For example, a highly used interface is the Repository interface, which provides various methods for obtaining documents, jobs, reports, links and other entities. Your program can obtain the Repository interface as follows:

try
{
String user = args[0];
String pwd = args[1];
String host = args[2];
String port = args[3];
Session theSession = SessionFactory.getInstance(user, pwd, host, port);
Repository theRepository = theSession.getRepository();
}
catch (ReportMartException e)