Map Service and Map Legend

Discussion created by nqazi on Jun 18, 2013
Latest reply on Jun 18, 2013 by LDanzinger-esristaff
I have a published a May service consisiting of many layers on ARCGIS Server. I want to access from flex application the layers array of this map service  in order to assign this layer array to esri legend control in flex application. Is there any way to access the layers in the published map services. please note I am using flex API under flash builder 4.6. Any advice.