Issue with map service not showing up using proxy page

794
4
06-10-2013 09:00 AM
JeffJacobson
Occasional Contributor III
I created a sample project where I tested using secure geocoding and routing services with a proxy page.  I posted the sample to github after I got it working.

Someone else tried to use it and is having issues with a map service not showing up.  As it may be a while before I have a chance to look into this issue I thought I would post it here.

Any ideas?

The link to the description of that user's issue is here:
https://github.com/WSDOT-GIS/ArcGIS-Server-Routing-Test/issues/2
0 Kudos
4 Replies
JohnGravois
Frequent Contributor
the user is asking for a dynamicToken in his proxy.config without even specifying credentials.  they'll need to hard-code a long-term token in the proxy.config instead and retest directly in the browser before attempting to access within their app.  (ie. http://server/proxy.ashx?http://server/arcgis/rest/secure/MapServer). 

if the proxy can display the secure resource directly in the browser, it should appear in their app as well.
0 Kudos
AshishArora
New Contributor III
the user is asking for a dynamicToken in his proxy.config without even specifying credentials.  they'll need to hard-code a long-term token in the proxy.config instead and retest directly in the browser before attempting to access within their app.  (ie. http://server/proxy.ashx?http://server/arcgis/rest/secure/MapServer). 

if the proxy can display the secure resource directly in the browser, it should appear in their app as well.


This is not working.

i am using ArcGIS server 10.1 secured services through Web Adaptor.

The credentials were supplied in web.config. In debug mode, i can see the token getting generated and based on that even fetching service metadata but no map in browser looks like the generated token is not getting authenticated with ArcGIS server properly.
0 Kudos
JohnGravois
Frequent Contributor
can you try using a hardcoded long term token instead?
0 Kudos
AshishArora
New Contributor III
can you try using a hardcoded long term token instead?


Yes, I tried using hardcoded long term token in proxy.config. Can see the service details in JSON but no map.

Tried to access service directly through browser without proxy and it asked for authentication. Provided username and password and got authenticated and can browse map.

Is their any working example of proxy accessing services through WebAdaptor with username and password stored in web.config
0 Kudos