ArcGIS Server 9.2 offers five service types: map, geocode, geodata, geoprocessing, and globe. Before you can create a service, you must first create the GIS resource that it will access. For example, a map service uses a map document. You must create the map document and make it available on a shared network directory before creating the service.
This chart summarizes the GIS resource required for each type of service.
Service type | GIS resource |
Map service | Map document (.mxd, .pmf) |
Geocode service | Address locator (.loc, .mxs, SDE batch locator) |
Geodata service | Database connection file (.sde) or Personal Geodatabase or File Geodatabase or Map document with a layer that references a layer from a versioned geodatabase |
Geoprocessing service | Map document with a tool layer or Toolbox (.tbx) |
Globe service | Globe document (.3dd, .pmf) |
There are two ways to create services in ArcGIS Server. In Manager, these are described as "Publish a GIS Resource" and "Add New Service". Choosing "Add New Service" allows you to set all of the service properties at the time you create the service. In contrast, "Publish a GIS Resource" only prompts you for the minimum required information.
When you choose "Add New Service" you can only create one type of service at a time. For example, if you have a map document with a tool layer which you want to use to publish both a map service and a geoprocessing service, you must create the services individually if you use "Add New Service". If you use "Publish a GIS Resource" you have the option to create the two services at the same time.
The following instructions explain how to use the "Add New Service" option. For help with using "Publish a GIS Resource" see Publishing a GIS resource to the server.
Note: When you choose "Publish a map, globe, or other GIS resource as a service" in Manager's Home tab, this opens the "Publish a GIS Resource" wizard.
If you're creating a geodata service, choose whether you want to create the service directly from a geodatabase, or from a map document containing a layer from a geodatabase. If you are creating the service from the geodatabase directly, browse to the file geodatabase, personal geodatabase, or database connection file you'll be using. When you make a database connection in ArcCatalog, the connection information is stored in your profile directory (Example: C:\Documents and Settings\<username>\Application Data\ESRI\ArcCatalog\Connection to myServer.sde). It's a good idea to copy this file into a shared network directory to which all of your container machines have read access. When creating the service, browse to this shared directory and select the connection file.
If you're publishing the service from a map document containing a geodatabase layer, browse to that map document.
Once you've browsed to the database or map document, specify an output directory.
If you're creating a geoprocessing service, first choose whether the job will be performed synchronously (optimal for short jobs) or asynchronously (optimal for long jobs, and the results are stored on the server for future retrieval). Then, browse to either the toolbox or the map document containing the tool layer you want to publish. The results of the service can optionally be returned to the client as a map service, which you can select from the Result Map Service dropdown.
Geoprocessing services use jobs directories, which you must specify, as well as an associated virtual directory. For the jobs directory to be available, you must have specifically created it as a jobs directory using the Directories tab in the Server Properties. You'll also need to specify a server output directory in the same way.
If you're creating a geodata service, choose whether you want to create the service directly from a geodatabase, or from a map document containing a layer from a geodatabase. If you are creating the service from the geodatabase directly, browse to the file geodatabase, personal geodatabase, or database connection file you'll be using. When you make a database connection in ArcCatalog, the connection information is stored in your profile directory (Example: C:\Documents and Settings\<username>\Application Data\ESRI\ArcCatalog\Connection to myServer.sde). It's a good idea to copy this file into a shared network directory to which all of your container machines have read access. When creating the service, browse to this shared directory and select the connection file.
If you're publishing the service from a map document containing a geodatabase layer, browse to that map document.
Once you've browsed to the database or map document, specify an output directory.
If you're creating a geoprocessing service, first choose whether the job will be performed synchronously (optimal for short jobs) or asynchronously (optimal for long jobs, and the results are stored on the server for future retrieval). Then, browse to either the toolbox or the map document containing the tool layer you want to publish. The results of the service can optionally be returned to the client as a map service, which you can select from the Result Map Service dropdown.
Geoprocessing services use jobs directories, which you must specify, as well as an associated virtual directory. For the jobs directory to be available, you must have specifically created it as a jobs directory using the Directories tab in the Server Properties. You'll also need to specify a server output directory in the same way.