“What you can do is create an intermediary page on the InfoView application.
This page will use the code that you got from the view.jsp and pass the wcaToken to your application”
Yes, exactly. From infoview I invoke another application wrote in ASPX.NET but this need logontoken to connect to CMS and execute a webi report. I don’t know if BO XI 3.1 use constants, or session variables where store the token. In XI R2 version the code got from openFlash.jsp work it. this jsp is in C:\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\InfoView\plugin\crystalenterprise\flash\
this is the code in XI R2 SP2:
[b][i]
<%@ page language=“java” contentType=“text/html;charset=utf-8” %>
<%@ page session=“true” %>
<%@ page import=“com.crystaldecisions.ePortfolio.framework.common.CrystalIdentity,
com.crystaldecisions.webapp.CEConstants,
com.crystaldecisions.webapp.util.html.Encoder” %>
<jsp:useBean id=“CE_Session” type=“com.crystaldecisions.ePortfolio.framework.common.CrystalIdentity” scope=“session”/>
<% String sContext = “…/…/…/…”; %>
<%
response.setHeader(“Cache-Control”,“no-cache”); //HTTP 1.1
response.setHeader(“Pragma”,“no-cache”); //HTTP 1.0
response.setDateHeader (“Expires”, 0); //prevents caching at the proxy server
String sDocId = request.getParameter (“DocumentId”);
if(sDocId == null)
sDocId = request.getParameter(“iDocID”);
CrystalIdentity identity = (CrystalIdentity)
request.getSession().getAttribute(CEConstants.SESSION_EN_SESSION);
// log on token for passing flash vars
String flashvar = “CELogonToken=” + Encoder.encodeURL(identity.getLogonToken());
// append Web Connector URL configurtion
ServletContext context = getServletConfig().getServletContext();
String webUrl = context.getInitParameter(“crystalxcelsius.webconnectorurl”);
if(webUrl != null && webUrl.length() > 0)
flashvar += “&CEWebServiceURL=” + Encoder.encodeURL(webUrl);
[/b][/i]
String flashvar = “CELogonToken=” + Encoder.encodeURL(identity.getLogonToken()); <-- This statement get logontoken.
Well, in XI 3.1 the jsp is called view.jsp and the code is some diferent.
In my ASPX application I use some like this:
[b][i]
SessionMgr sessionMgr = new SessionMgr();
//InfoStore infoStore;
//EnterpriseService enterpriseService;
enterpriseSession = sessionMgr.LogonWithToken(ls_CELogonToken);
[/b][/i]
My problem is how to get the LogonToken from Infoview.
I’m migrating BOXIR2 to XI 3.1.
Thanks,
Best Regards,[/b]
russell
(BOB member since 2006-08-12)