ggyamin

help token is null

Discussion created by ggyamin on Feb 27, 2011
Latest reply on Mar 15, 2011 by ctinnell
help

i need to insert a token for using a rest services

i am using the esri code for getting a token but i get null al the time

AGSCredential* cred = [[[AGSCredential alloc] initWithUser:@"<user name>" password:<password>"] autorelease];   

//pass the credential to layer or task
AGSTiledMapServiceLayer* layer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl credential:cred ];   



the user name and password are curect

can sum one pleas help me

ben

Outcomes