From what I've heard till now:
1) ArcGIS from version 10.1 and forth will only support http connections: local connections will not be supported any longer.
2) The code
ESRI.ArcGIS.Carto.IMapServer iMapServer = (ESRI.ArcGIS.Carto.IMapServer)ctx.ServerObject;
or the code
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceLocal mfunct = (ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceLocal)gisResource; ESRI.ArcGIS.Carto.IMapServer iMapServer = (ESRI.ArcGIS.Carto.IMapServer)mfunct.MapServer;
can't both work with an internet service connection because they require a local connection.
3) The ESRI.ArcGIS.ADF.Web.SpatialFilter object cannot be set to identify what kind of query I'd like to perform. I mean, with the ESRI.ArcGIS.Geodatabase.ISpatialFilter interface you can do something like
spatialFilter.SpatialRel = ESRI.ArcGIS.Geodatabase.esriSpatialRelEnum.esriSpatialRelIntersects;
to specify what you want as result. SpatialFilter hasn't this feature. I need the ISpatialFilter spatial relationship feature.
4) If you put it all together, it figures out that you need an IMapServer-implementing object to perform the ISpatialFilter query
ESRI.ArcGIS.Geodatabase.IFIDSet fidSet = iMapServer.QueryFeatureIDs(mapDescription.Name, layerID, queryFilter);
So if you read back points 1 and 2... what am I supposed to do?
I've also asked this on the official forums but still no answers.
Please help because I'm getting crazy on this.