Skip to Content
0
Former Member
Feb 06, 2009 at 11:20 AM

openDocument and token

53 Views

I have a question to the "token" parameter for openDocument-calls; the "Viewing Reports and Documents using URLs" guide (BO XI 3.1) gives the following example (p. 61):

http://<servername>:<port>/OpenDocument/opendoc/<platformSpecific>?sType=widsDocName=Sales+in+2003&token=<logonToken>

I am trying to generate a token using the BO Java SDK:

ILogonTokenMgr boLogonTokenMgr = boEnterpriseSession.getLogonTokenMgr();
String logonToken = boLogonTokenMgr.createLogonToken("", 10, 10);

Then I would like to call an openDocument URL from a .NET application:

http://boserver:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=1254&token=<logonToken>

How can I pass the token that I generated in my JSP/WAR (on Tomcat) to the openDocument-URL?

How should <logonToken> look like?

Are there code samples available?

Thanks!