Select to view content in your preferred language

How to get the table data from rest service?

649
2
04-13-2011 02:30 PM
weiliang
Deactivated User
Hi,

With the tables added in the MXD and published as a map service. How can I get their data and data-info from the rest service?

Also, to get a feature layers's data directly, is FeatureLayer the only way? It seems that: ArcGISDynamicMapServiceLayer arcgisDynamic = MyMap.Layers["Environmental Layers"] as ArcGISDynamicMapServiceLayer;   only exposes layerInfo.

Thanks for your help,

Wei
0 Kudos
2 Replies
DominiqueBroux
Esri Frequent Contributor
Instead of a feature layer, you can use a query task, which is basically what is doing a feature layer behind the scena.
0 Kudos
weiliang
Deactivated User
Thanks for your answer, Dominique.

Have a nice day!

Wei
0 Kudos