mvillemontesrifrance-fr-esridist

How to get layer ID from a SOAP connection in SOE

Discussion created by mvillemontesrifrance-fr-esridist Employee on Feb 3, 2017
Latest reply on Feb 3, 2017 by mvillemontesrifrance-fr-esridist

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

Outcomes