There are two ways to create services. In Manager, these are
described as Publish a GIS Resource and Add New
Service. Choosing Publish a GIS Resource does the following
things:
- Prompts you for only the minimum amount of information needed
to publish a GIS resource as a service.
- Sets service properties such as pooling, recycling, and
time-outs to the default values.
- Allows you to publish associated services automatically. For
example, if you choose Publish GIS Resource to publish a
map document with a tool layer, you have the option to enable the
geoprocessing capability and automatically create a geoprocessing
service that will work with the map service. If you use Add New
Service in this scenario, the geoprocessing capability is not
available and you have to create the map and geoprocessing services
one at a time.
The following instructions explain how to use the "Publish a GIS
Resource" option. For help with Add New Service see Adding a new service.
Note: When you choose "Publish a map, globe, or other GIS
resource as a service" in Manager's Home tab, the
Publish a GIS Resource wizard appears.
How to publish a GIS resource to the server using
Manager
- Click the Services tab in Manager.
- Click Publish GIS Resource.
- Click the Resource Type drop-down arrow, click the service type, then click Browse.
- Depending on the Resource Type, click to browse either the Local File System, the ArcGIS Server File System or a resource within an ArcSDE Database.
- To publish a resource on the Local or ArcGIS Server File System, browse to the resource you want to publish or type its path. To publish a resource on an ArcSDE server, enter the database connection parameters.
- Optionally, change the default name of the service.
- Choose which folder the service will be published to. You can
either specify an existing folder or create a new folder. Click
Next.
- Choose the capabilities that you would like to enable.
Depending on the type of the resource and the information it
contains, you will see more or fewer available
capabilities. Click Next.
-
Review the information about the service that will be created.
- If you want to change any of the properties, you can click
Previous to go back. Otherwise, click Finish to publish the
resource.
How to publish a GIS resource to the server
using ArcCatalog
- In the Catalog tree, navigate to the resource you want to
publish. For example, navigate to a map document on disk.
- Right-click the resource and click Publish to ArcGIS
Server.
- Choose which server you want to publish the resource to, type a
name for the service, then choose the folder in which the service
will reside. Click Next.
- Choose the capabilities you would like to enable for the
resource and click Next. Different types of resources expose
different types of capabilities. For a more complete explanation of
each type of capability, see What types of services can you
publish?
-
Review the information about the service that will be created.
If you will be working with the service through the Web, take
special note of the service's URL. You can't enter this URL in a browser directly, but you can enter the URL and append ?wsdl to see the service's Web service definition and verify that the service is working correctly.
Note that multiple Web service
endpoints can be created when you specify certain capabilities (for
example, the KML capability for map services creates an additional
endpoint suffixed KmlServer in addition to the default map
service).