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.

2 Responses

Subscribe to comments with RSS.

  1. Augustus said, on August 27, 2008 at 2:34 pm

    Are your folders stored on a machine with an OS that is case sensitive? (e.g. Linux, Solaris) This may be an OS issue.

  2. viswaug said, on August 27, 2008 at 2:57 pm

    Augustus,

    No, This happens on a XP and a Vista box.

    Vish


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: