To publish a feature service to a GIS Server, publish a map service and enable the Feature Access capability on it. This generates a URL through which you can use the feature service. The lifetime of the map service controls the lifetime of the feature service. If the map service is shut down, the feature service is shut down as well.
To publish a map service from ArcMap with the Feature Access capability enabled, follow these steps:
- Open your map document in ArcMap and choose File > Share As > Service from the main menu.
The Share as Service window appears.
- Choose Publish a service and click Next.
- Choose the GIS Server connection you want to use from the Choose a connection drop-down list. If the connection you want to use is not listed, you can create a new connection by clicking Add ArcGIS Server .
- Optionally, in the Publish a Service window, enter a new name for the service. The name cannot be more than 120 characters long and may contain only alphanumeric characters and underscores.
- By default, services are published to the ArcGIS Server Site (root) folder. Services can be organized into sub folders under the root folder. Choose the folder where you want to publish the service, or create a new folder to contain the service, and click Continue.
The Service Editor appears.
- Set the properties that you want for your map service. Here, you can choose what users can do with your service and take fine-grained control of how the server will expose your service. For details on how to manually set map service properties, see the topic Set map service properties. You can also automatically import properties from an existing service definition or a published map service by clicking Import . For information on how to best configure your service for deployment, see the help topic Tuning and configuring services.
- In the left pane of the Service Editor, click Capabilities and select Feature Access. Enabling this option creates an associated feature service with your map service that allows clients to perform feature editing over the web.
- In the left pane of the Service Editor, click Feature Access and set the properties that you want for your feature service. Here, you can choose what users can do with your service and take fine-grained control of how the server will expose your features. By default, the data exposed through the feature service can be queried and edited. Editing allows users to apply changes to the data in the source geodatabase using the service. For details on how to manually set feature service properties, see Editor permissions for feature services.
- Click Analyze . This examines your map document to see if it can be published to the server.
- Fix any errors () in the Prepare window so you can publish your map document as a service. You can fix the warnings and informational messages to further improve the performance and appearance of your feature service. For more information about resolving these issues, see Analyze your GIS resource.
- Optionally, click Preview . This can give you an idea of how your map will look when viewed on the web. See Previewing your map for more information.
- Once you've fixed the errors and, optionally, any warnings and messages, click Publish .
Your feature service is now running on the GIS Server and can be accessed by clients on your network. If your ArcGIS Server administrator has allowed web access to the service, your service is also now available on the web.