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.