Select to view content in your preferred language

getting a Credential object using IdentityManager and ServerInfo

2280
11
08-14-2012 03:32 PM
DirkVandervoort
Frequent Contributor
The code below fails with the error message. How do I get the credential based on my token service URL?: TIA

faultCode:null faultString:'Error #2032: Stream Error. URL:https://gis.blahblahblah.com/arcgis/tokens?tokens' faultDetail:'null'


     var serverInfo:ServerInfo = new ServerInfo();
     serverInfo.tokenServiceURL="https://gis.blahblahblah.com/arcgis/tokens?tokens";
     IdentityManager.instance.generateCredential(serverInfo, myStupidUserName, myStupidPassword, new AsyncResponder(credentialResponse, credentialFault));
Tags (2)
0 Kudos
11 Replies
DirkVandervoort
Frequent Contributor
Are you able to generate a token from the HTML form at:
https://gis.blahblahblah.com/ArcGIS/tokens/


Sorry, same error.
0 Kudos
DasaPaddock
Esri Regular Contributor
I'd suggest contacting http://support.esri.com to get this working first.
0 Kudos