I need the name of each layer in an .msd, but I could not find support using arcpy (ArcGIS 10.0). Is there a method I missed?
In the current workflow, since I am publishing the document, I use the REST service:
descriptionUrl = url + "/ArcGIS/rest/services/" + mapServer + "/MapServer?f=json"
restResponseFp = urllib.urlopen(descriptionUrl)
mapDescription =json.load(restResponseFp)
layerNames = [str(layer["name"]) for layer in mapDescription["layers"]]