Hi,
I have got a Java SOE that access several MapServices using SOAP.
I would like to get the layer definition of each layer of the MapService in order to retrieve their IDs.
I'm not quite sure how to do that.
Currently I'm able to get the MapServerLayer like this :
MapServerLayer msl = (MapServerLayer) this.currentRequestServerContext .createObject(MapServerLayer.getClsid()); try { msl.serverConnect(agsServerObjectName, mapServer.getDefaultMapName()); } catch (Exception ex) { log.error("Problem connect to service: " + url + ". Error detail:", ex); return null; } Thanks
((MapServerXXXSublayer) layer).getLayerDescription().getID();
is what I needed.