Unknown Authentication Error while accessing NAServer

550
1
08-16-2011 03:38 AM
RajaSS
by
New Contributor
Hi

I am trying to access a secured NAServer for Route functionality, through iOS APIs. I provided the following information.

AGSCredential *userCredentials = [[AGSCredential alloc] initWithUser:@"UserName" password:@"Password"];
NSURL *routeTaskUrl = [NSURL URLWithString:kRouteTaskUrl];
self.routeTask = [AGSRouteTask routeTaskWithURL:routeTaskUrl credential:userCredentials];

But while trying to access the server for

[self.routeTask retrieveDefaultRouteTaskParameters];

it is giving "Unknown Authentication Error".

The above credentials are working for the NAServer, through a web browser.

Can anyone tell me why this could be happening?

Thanks.
0 Kudos
1 Reply
RaviNarayanan
Esri Contributor
0 Kudos