Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem authorizing via apstoken

Status
Not open for further replies.

marystewart2010

Programmer
Jun 11, 2010
3
0
0
US
HI, I'm talking programmatically to our Crystal server now successfully, and logging in etc. But, we're running out of licenses. So, I want to "reuse" the apstoken. So, I get a token, and try and pass it in; however, I get a login screen when I do that with an invalid login. Why is that?

Here's how I'm getting the token:

ILogonTokenMgr iLTM = enterpriseManager.getLogonTokenMgr();
token = iLTM.createLogonToken("",
1000,
10000);
}

Then I pass it in on the argument line, just like the documentation says:

theURL.append("&apstoken=" + URLEncoder.encode(token);

Any ideas why that isn't working and I get a login screen? I noticed the CMS seems to be running on 6400, but we're trying to run our reports across the wire on 6405, is that the issue?
 
One other thing to mention, we're using the viewrpt.cwr on the same machine but port 6405 to try and display the report. But, I get the token on port 6400.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top