I have some code that queries the esri webserver for a list of services. I start off with: https://MyEsriUrl/arcgis/rest/services?f=sitemap That code worked for years. We recently attached a portal to our esri webserver. We're now running v10.5 of both. Now, the esri admin can issue this command in the browser and it still works, but if I issue it I get an empty list back. I thought it might be a permissions issue except for three facts: (1) If I go to I can see everything I ought to see. (2) I've found out that I can now use https://MyEsriUrl/arcgis/rest/services?f=json and that also works correctly. (3) Esri admin added me to the esri admin role and I still can't see anything with ?f=sitemap. Obviously, I can rewrite the code to work, but that app is scheduled to be replaced and I would rather spend time working on the replacement app... Any ideas on how to get ?f=sitemap to work properly? |
Solved! Go to Solution.
arcgis server - esri rest service ?f=sitemap returns no services - Geographic Information Systems St... covers this in more detail.
Apparently, this is intended behavior. Can't understand why, but it is what it is.
Item #3 above was a browser caching issue. So at least I'm getting consistent results.
Any ideas how to get ?f=sitemap to work for someone who isn't a site admin?
arcgis server - esri rest service ?f=sitemap returns no services - Geographic Information Systems St... covers this in more detail.
Apparently, this is intended behavior. Can't understand why, but it is what it is.
I've rewritten my code to make multiple, recursive calls to the server via the ?f=json and it's slow as all get out. Yuck!
So, I'm going to create a service acct with GIS admin privs and create a web service to wrap the call to the ?f=sitemap option. That way, the web service will ask as an admin and pass the data I need back much faster.
For gis websites that aren't "ours" (so we don't have admin access), we'll use the new code I've written.