Select to view content in your preferred language

Discover Map Services Available from a ArcGIS Server

1478
4
01-09-2011 08:58 AM
HeavyWoody
Emerging Contributor
Is there a mechanism that will let me discover what Map Services are available by simply putting in the URL for discover?  For example, http://www.somecompany.edu/ArcGIS/rest/services is entered and then grabbing all the Map Services available?  I see ArcGIS Explorer Online lets you do it by specifying a ArcGIS URL.  Can it be done with the Silverlight/WPF API tool?  I just hate hard coding the URLs.
0 Kudos
4 Replies
RichardWatson
Deactivated User
I don't know of built-in way to do this from Silverlight but writing it yourself would be easy.

You just need to write some server side logic and expose it via REST.  The logic would simply connect to the SOM, gets whatever information you require from it, and then returns the results.  If you have a proxy page then that might be a good place to put this logic.
0 Kudos
JenniferNery
Esri Regular Contributor
Here's some documentation on how you could use ServiceDirectory http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/servicesdirectory.html
0 Kudos
KirkKuykendall
Deactivated User
Using the REST api, and starting with a root url, it doesn't seem like it would be hard to crawl through all the Folders recursively.
0 Kudos
DaveTimmins
Deactivated User
Hi,

take a look at this sample (called ArcGIS Server Explorer for Silverlight), it does something similar (note that on the 11th it will move location to the new resources.arcgis.com site)

http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=162...
0 Kudos