Select to view content in your preferred language

Call dynamically services from arcgis service directory

914
3
Jump to solution
02-15-2012 02:08 AM
Mohammed_YassineAYACHE
Occasional Contributor
Hi everybody,
Is there a method to know the list of services published in a folder of the arcgis services directory ?
I want to call dynamically the services existing in this directory. the pupose is that when a new service is published, the application load it automatically without changing the code.

is that possible ?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
IvanBespalov
Frequent Contributor
Server version "10.01" returns description for each folder: Folder Louisville in ESRI sample server
{"currentVersion" : "10.01",    "folders" : [],    "services" : [     {"name" : "Louisville/LOJIC_LandRecords_Louisville", "type" : "MapServer"},      {"name" : "Louisville/LOJIC_PublicSafety_Louisville", "type" : "MapServer"}   ] }

Here is help

All you need is experience with parsing server response in JSON format.  🙂

View solution in original post

0 Kudos
3 Replies
IvanBespalov
Frequent Contributor
Server version "10.01" returns description for each folder: Folder Louisville in ESRI sample server
{"currentVersion" : "10.01",    "folders" : [],    "services" : [     {"name" : "Louisville/LOJIC_LandRecords_Louisville", "type" : "MapServer"},      {"name" : "Louisville/LOJIC_PublicSafety_Louisville", "type" : "MapServer"}   ] }

Here is help

All you need is experience with parsing server response in JSON format.  🙂
0 Kudos
Mohammed_YassineAYACHE
Occasional Contributor
Thanks a lot Ivan.

but still not understanding how to retrieve the server response with flex. which Object shall I use (HttpService ?).

Regarding JSON, I have no problem, I use it all the time.
0 Kudos
Mohammed_YassineAYACHE
Occasional Contributor
it works with HttpService.

thanks again 🙂
0 Kudos