perryd

Retrieving Token Dynamically from secure REST service

Discussion created by perryd on Aug 4, 2010
Latest reply on Aug 4, 2010 by perryd
I have two load balanced servers running my mapping application and I am attempting to retrieve my tokens for a secure service dynamically. Any maps from non-secure services are retrieved just fine. However, when I try to retrieve maps from the secure service, I get a "The remote server returned an error: (500) Internal Server Error."

I am using a proxy to request the token and it fails on the following line when trying to get the token from the token service:

System.Net.WebResponse tokenResponse = tokenRequest.GetResponse();

I posted this here because I am using the JS API but need to post under REST API. I am going to stand up my app on a non load balanced server to see if that is the issue but that is not where it can run long term.

Any ideas??

Outcomes