Authoring feature services in ArcMap to publish to ArcGIS Spatial Data Server

Create a map document in ArcMap that contains the feature classes you want to publish to ArcGIS Spatial Data Server.

Steps:
  1. Start ArcMap and open the Catalog window.
  2. Connect to the database that contains the data you want to publish.
    NoteNote:

    You must install and configure the DBMS client on the ArcGIS for Desktop computer before you can connect to the database.

    1. Expand the Database Connections folder in the Catalog tree and double-click Add Database Connection.

      The Database Connection dialog box opens.

    2. From the Database Platform drop-down list, choose the type of database to which you want to connect.
    3. The connection information you provide varies depending on the type of database you choose:
      • For SQL Server, type the SQL Server instance name in the Instance text box and the name of the database to which you want to connect in the Database text box.
      • For PostgreSQL, type the name of the server where PostgreSQL is installed in the Instance text box and the name of the database to which you want to connect in the Database text box.
      • For Oracle, type the Oracle client connection string. This could be the Oracle host name (if the Oracle listener on the server is configured to point to a default instance), host name:port, host name/service name, host name:port/service name or ID, or tnsnames.ora value (if the tnsnames.ora file is configured on the client machine).
      • For DB2, type the DSN-less connection string for the database. This is in the format
        HostName=<host>;Port=<port number>;Database=<database name>;
    4. Use database authentication to connect to the database. This requires you to provide the user name and password of a valid database user.

      You must connect as the same user that you provided when you configured your data source, and that user must have at least select privileges on the data you want to publish. If you want users to be able to edit the data through the service, you must either be the owner of the data or have been granted insert, update, and delete privileges with the WITH GRANT option on the data.

    5. Click Save user name and password to save this information with the connection file.
    6. Click OK to create the connection.
    7. Optionally, you can type a different name for the connection in the Catalog tree.
  3. Expand the database connection in the Catalog tree.
  4. Choose the first feature class you want in the feature service from the database connection in the Catalog window and drag it onto the map.
  5. Add to the map the other feature classes you want to publish to the service.

    If you plan to use the feature service for editing, only add data to the map document that you want to edit. Other data should be published in a separate service.

  6. Symbolize the data and configure the map document to include the properties you want to expose in the service.
  7. In the map, zoom to the initial extent at which you want your service to open.

    When you publish, you specify the maximum number of features that can be returned. If the map is showing the full extent, you may not get all the features returned.

  8. Set a scale range for each feature class in the map.

    If the number of features displayed for a feature class exceeds the maximum number of features that can be returned by the service, some features will not draw. Set the scale range so the feature classes don't display beyond a minimum scale. See Displaying layers at certain map scales for more information.

  9. Save your map document.

When you finish setting up the map document, you are ready to publish. See Publishing a feature service for ArcGIS Spatial Data Server from ArcMap.

7/19/2012