Hi Antinio,
The method you are using to create a token doesnot exist for the IEnterpriseSession interface and the same is stated in the error message.
use the below code which works:
<%@ page import = "com.crystaldecisions.sdk.occa.infostore.*,
com.crystaldecisions.sdk.plugin.desktop.common.*,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.occa.security.*,
com.crystaldecisions.sdk.exception.SDKException,
com.crystaldecisions.sdk.occa.managedreports.IReportSourceFactory,
java.util.Locale,
com.crystaldecisions.report.web.viewer.CrystalReportViewer,
com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"
%>
<%
IEnterpriseSession enterpriseSession;
String serializedSession;
/* Set Enterprise Logon credentials. */
final String BO_CMS_NAME = "Your CMS Name";
final String BO_AUTH_TYPE = "Your Auth Type";
final String BO_USERNAME = "Your User Name";
final String BO_PASSWORD = "Your Password";
/*Set Java InfoView start page URL */
final String INFOVIEW_URL = "http://localhost:8080/InfoViewApp/logon/start.do";
/* Log onto Enterprise and serialize the Enterprise Session. */
enterpriseSession = CrystalEnterprise.getSessionMgr().logon(BO_USERNAME, BO_PASSWORD, BO_CMS_NAME, BO_AUTH_TYPE);
ILogonTokenMgr logonTokenMgr = enterpriseSession.getLogonTokenMgr();
String token= logonTokenMgr.createLogonToken("",10,10);
/* Redirect to InfoView, passing the token. */
response.sendRedirect(INFOVIEW_URL + "?ivsLogonToken=" + java.net.URLEncoder.encode(token));
%>
The method createLogonToken() takes three parameters which you have not passed yet.
java.lang.String createLogonToken(java.lang.String clientComputerName,
int validMinutes,
int validNumOfLogons)
throws SDKException
Please download the developers guide and API reference from the following links for better understanding about how the SDKs work
http://help.sap.com/businessobject/product_guides/boexir31/en/boesdk_java_dg_12_en.zip
http://help.sap.com/businessobject/product_guides/boexir31/en/boesdk_java_apiRef_12_en.zip
Regards,
prithvi