Accessing ArcIMS Services

Last Modified:1/24/2002

This VB application connects to any ArcIMS server by using the URL of the server, and a treeview gets populated will all FREE services. Also, each service will list the sub-layers (Image services) or feature class (Feature services).

The sample covers:
 Connect to an ArcIMS server.
 Retrieve Image/Feature services.
 Programmatically add an Image/Feature service or Image sub-layer/Feature class to the map.
 Display an ArcIMS Service.
 Control panning, zooming, and full extent.
 Transparency and rotation effects.

How to use:
  1. To run this sample, navigate to your ArcGIS installation directory,
  2. go under ArcObjects Developer Kit\Samples\IMS\AccessArcIMSServices directory.
  3. Build the sample into AccessArcIMSServices.exe.
  4. Run the executable.
  5. To start, type in Address,
  6. or to your favorite ArcIMS URL server.


Minimum ArcGIS Version Required: 8.2

Difficulty: Intermediate

Visual Basic
File Description
clsApplication.cls Class file containing the connection and connection properties to the specified server.
frmMapService.frm Form containing the Map Control and other controls that let the user type the url, select a service and preview it in the Map Control.
AccessArcIMSServices.vbp The project file.
AccessArcIMSServices.exe The compiled project.

Key CoClasses: IMSConnection, IMSServiceName, IMSLayerFactory, IMSWorkspaceFactory, GroupLayer, FeatureLayer, RotateOperation
Key Interfaces: IIMSConnection, IGxObjectContainer, IEnumGxObject, IIMSServiceDescription, ILayerFactory, IEnumLayer, IIMSMapLayer, IACMap, IACLayer, IWorkspaceFactory, IWorkspace, IEnumDatasetName, IDatasetName, IName, IFeatureClass, IFeatureLayer, IGeoDataset, IIMSServiceDescription, ISpatialReference, ILayer, IGroupLayer, ICompositeLayer, IActiveView, IPoint, IEnvelop, IRotateOperation, ILayerEffects