Map service GetDefaultMapName method
Gets the name of the active map (data frame) in a map service.
GetDefaultMapName()
Return Value
A string representing name of the active map in the map service.
Remarks
A map service can contain many maps (data frames). To discover the number of maps and their respective names, use the GetMapCount and GetMapName methods, respectively.
Examples
C#
MapService_MapServer mapservice = new MapService_MapServer();
mapservice.Url = "http://localhost:6080/arcgis/services/MapLayerCache/MapServer";
string mapname = mapservice.GetDefaultMapName();
VB.NET
Dim mapservice As MapService_MapServer = New MapService_MapServer()
mapservice.Url = "http://localhost:6080/arcgis/services/MapLayerCache/MapServer"
Dim mapname As String = mapservice.GetDefaultMapName()
Java
String serviceURL = "http://localhost:6080/arcgis/services/MapService/MapServer";
MapServerBindingStub mapService = new MapServerBindingStub(serviceURL);
String mapName = mapService.getDefaultMapName();
System.out.println("Default Map Name: " + mapname);
10/23/2013