Vishful thinking…

ESRI REST URLs – Gotcha

Posted in Uncategorized by viswaug on August 27, 2008

We noticed this behavior with the ESRI REST API URLs today during one of our discussions in the office today. Normally the ESRI REST URLs look this way

 http://MachineName/ArcGIS/rest/services/MapServiceName/MapServer

In the above URL, the mapserver name is not case-sensitive. That is, the URLs below will work just fine.

 http://MachineName/ArcGIS/rest/services/MapServicename/MapServer

http://MachineName/ArcGIS/rest/services/mapservicename/MapServer

But note that in ArcGIS server, you can organize your MapServices in folders. Although, you cannot have folders inside folders. For the MapServices in the folders, the REST URL look like below. Where the URL includes the folder name before the MapService name.

 http://MachineName/ArcGIS/rest/services/FolderName/MapServiceName/MapServer

But the weird part is that the name of the folder in the above URL IS case-sensitive. That is, the URLs below will not work.

 http://MachineName/ArcGIS/rest/services/Foldername/MapServiceName/MapServer

http://MachineName/ArcGIS/rest/services/foldername/MapServiceName/MapServer

Hopefully, this inconsistent behavior is an oversight and ESRI would get around to fixing it in the coming versions.

Advertisement