ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Create a service definition in ArcMap

If you have limited access to the server—for example, in a cloud environment or secure environment—you can create a service definition file that can be shared with a server administrator for publishing at a later time. A service definition file contains information about service properties, capabilities, and the service type, which is encapsulated in one portable file. Optionally, you can configure the service definition file to include the data referenced by your GIS resource.

For example, suppose you're a GIS analyst managing a geodatabase that is constantly being modified by dozens of editors. Every month, this data goes through a quality assurance process to make sure it meets your organization's data integrity standards. After quality checking the data, you can capture the verified geodatabase with a service definition file and transfer it to your server administrator for publishing to an ArcGIS Server site.

Note:

Service definition files differ depending on whether you connect to an ArcGIS Server site or a portal organization when you create the service definition file. If you are connected to an ArcGIS Server site or choose the option to include the data referenced by your GIS resource when you create the service definition file, the file can only be used with an ArcGIS Server site; you cannot publish it to an ArcGIS Enterprise portal or ArcGIS Online. Similarly, if you are connected to an organization when you create the service definition file, you cannot publish the service definition file to an ArcGIS Server site.

To create and save a service definition file that you can publish to your site at a later time, follow these steps.

  1. Follow the directions in the table below based on what you eventually want to publish to your site:

    OptionAction

    Publish a map document

    Open the ArcMap document and click File > Share As > Service from the main menu.

    Publish a geoprocessing model or tool

    Browse to a successful result of the model or tool in the Results window, right-click it, and click Share As > Geoprocessing Service.

    Publish another type of item, such as a geodatabase or address locator

    Browse to the item in ArcCatalog or the Catalog window, right-click it, and click Share As Service.

  2. In the Share as Service window, choose Save a service definition file and click Next.
  3. In the Save a service definition file window, you have two options.
    • If you want to configure your service definition for a specific ArcGIS Server connection, do the following:

    1. Select Choose a connection.
    2. Click the connection you want to use from the Choose a connection drop-down list. If the server connection you want to use is not listed, you can create a connection to the server by clicking Connect To ArcGIS Server Add ArcGIS Server. If you need help with this step, see Connect to ArcGIS Server from ArcGIS Desktop.
    3. Optionally provide a name for the service. The name cannot be more than 120 characters and may contain only alphanumeric characters and underscores.
    4. Click Next.
    5. By default, services are published to the root folder (root) of ArcGIS Server. Services can be organized into subfolders under the root folder. Choose the folder where you want to publish the service, or create a folder to contain the service, and click Next.
    • If you are currently disconnected or have limited access to the server, do the following:

    1. Select No available connection.
    2. If you want to upload the data your service definition references to the server at the time of publishing, choose Include data in service definition when publishing.
    3. In the Server Type drop-down list, choose ArcGIS Server.
    4. Optionally provide a new name for the service. The name cannot be more than 120 characters and may contain only alphanumeric characters and underscores.
    5. Click Next.
  4. Choose the location to save the service definition file. You can accept the default or specify a location of your own.
  5. Click Continue.

    The Service Editor appears.

  6. Set the properties you want for your service definition. Here you can choose what users can do with your service definition and take fine-grained control of how the server will expose your service definition.

    Note:

    For details on how to manually set the properties of your service definition, locate the type of service you want to publish. You can also automatically import properties from an existing service definition or a published service by clicking Import Import. For information on how to best configure your service definition for deployment, see Tune and configure services in the ArcGIS Enterprise help.

  7. Click Analyze Analyze. This examines your GIS resource to see if it can be saved as a service definition.
  8. Fix any errors Error in the Prepare window; this must be done before you can stage your service definition locally on disk. Optionally, you can fix the warnings and informational messages to further improve the performance and appearance of the service derived from your service definition file. For more information about resolving these issues, see Analyze your GIS resource.

    Tip:

    If you close the Service Editor during this session, you'll be prompted to save your work as a draft service. Draft services allow you to come back to your service definition configuration work at a later time. By default, service definition files that are being configured for a specific ArcGIS Server connection are saved in the Drafts folder of the connection. Conversely, service definitions being configured with no available connection to the ArcGIS Server site are saved in the staging folder on disk. For more information, see Open a draft service in ArcMap.

  9. Once you've fixed the errors and, optionally, any warnings and messages, click Stage Stage.

Your service definition is saved to the location you specified and can be published to the ArcGIS Server site at any time.

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal