connect to sap BI using jkd

you can only find the jkd jar in you bi install dir, My example will use many jars , such as cecore.jar,celib.jar,cesession.jar,corbaidl.jar, ebus405.jar and logging.jar .

 

 

thanks for my colleague, I find out this solution, this is connect to BI server use jsp, it not easy to go to this point without friends help.

 

 

jsp code

</head>
<body>
<%

ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();

IEnterpriseSession enterpriseSession = sessionMgr.logon("username","pw","ip:port","usertype"); 
String token = enterpriseSession.getLogonTokenMgr().getDefaultToken();
response.sendRedirect(http://ip:port/OpenDocument/opendoc/openDocument.jsp?iDocID=id&sType=wid&token=+token); 
 %>
</body>

 

你可能感兴趣的:(connect)