I have a problem with the following line of code, I use a SOE.
when I run it, I get the following error.
Can anyone help?, What am I doing wrong?
Thank you.
Code:
public static IMap getMyMap(IServerObjectHelper serverObject) throws IOException{
IMapServer2 mapServer_2 = (IMapServer2) serverObject.getServerObject();
IMapServerObjects2 serverObjs_2 = (IMapServerObjects2) mapServer_2;
IMap map = serverObjs_2.getMap(mapServer_2.getDefaultMapName());
return map;
}Code:
AutomationException: No such interface supportedThank you.