Determining WMS Capabilities via Rest & JSON

2526
2
12-01-2011 03:45 AM
ChristopherDresel1
New Contributor
Hi,

i need to programmatically (C# & JSON Parser) determine WMS Capabilities of published Services via Rest & JSON. How would i do that?

If i browse for example to http://141.244.148.18/ArcGIS/Rest/Services/ACC_Scenario_1/MapServer, i can see "WMS" at "Supported Interfaces".

When i request JSON (http://141.244.148.18/ArcGIS/Rest/Services//ACC_Scenario_1/MapServer?f=json&pretty=true), this information is gone...

Is there any possibility to get the information if WMS is supported? Tried to scan over the Rest API http://denverdemo.esri.com/ArcGIS/SDK/REST/index.html, but didn't find anything useful.

Thanks & Greetz,
Dresel
0 Kudos
2 Replies
RaviNarayanan
Esri Contributor
Dresel,

Thank you for this posting. The information about WMS capability of a service is not part of the MapService resource JSON response. We will explore the possibility of returning this in the Service resource json response.

Ravi
0 Kudos
ChristopherDresel1
New Contributor
Thanks for your Response!

In the meantime i use following workaround:

I take the "mapName" and make a HttpRequest to the WMS GetCapabilities Request (services/<mapName>/MapServer/WMSServer)... if i get a response = "WMS enabled" if not = "WMS disabled"...

Not quite neat, but it works for now...
0 Kudos