Map services allow others to view and interact with GIS content on the web. Map services support visualization, querying, and can be drawn either dynamically from the data or by using tiles from a cache.
If your organization has deployed a stand-alone ArcGIS Server, you can share a map as a map service. When you publish a map service, the server makes your map available through a service URL, or REST endpoint. Client applications can use the URL to access the service and other capabilities that you enable during the publishing process. Map services can also be added directly to ArcGIS Pro through an ArcGIS Server connection.
To publish a map service, your project must contain a publisher or administrator connection to a stand-alone ArcGIS Server 10.6 or later. For more information, see Connect to a GIS Server.
Note:This workflow is only available when publishing to stand-alone ArcGIS Servers. To share web services to ArcGIS Online or a server federated with ArcGIS Enterprise, use Share a web layer. Web layers expose the rich capabilities of the Web GIS platform. For more information on additional functionality available when sharing to Web GIS, see Share with ArcGIS Pro.
You can also use ArcPy to publish a map service to a stand-alone server. To learn more, see Introduction to arcpy.sharing.
To publish a map service, follow these steps:
- In the Catalog pane or a catalog view, browse to the collection of servers in your project.
Right-click the ArcGIS Server that you'll publish to, click Publish, and click Map Service .
The Publish command is only available on ArcGIS Server connections to stand-alone servers with privileges to publish services.
If the Publish command doesn't appear on the server context menu, click Properties . In the ArcGIS Server Connection Properties dialog box, make sure the Type is set to Publisher Connection or Administrator Connection. You must have permission to publish services; if necessary, enter an appropriate user name and password.
- On the Select Map dialog box, browse to the map in the current project that you want to publish, then click OK.
- In the Publish Map Service pane, enter the Name of the service, and add a Summary and Tags.
- Choose a Data option.
- To avoid having a copy of the data placed on the server, register your data to the server using ArcGIS Server Manager and choose the Reference registered data option.
- If you want to maintain a separate copy of the data for web use, choose the Copy all data option.
For more information on data registration, see About registering your data with ArcGIS Server.
- In the Folder menu, specify the folder on the server where you want to store the service. Type the name of the folder if the folder does not already exist. The service is stored in the root folder if another folder is not specified.
- On the Configuration tab, set properties and enable Capabilities as needed. For more details, see Configure a map service.
- Optionally click the Content tab to view the new service structure and its sublayers.
- Click Analyze to identify potential issues or limitations. The Messages tab reports any errors and warnings raised by the analysis. Right-click each message to get more information, access the associated help topic, or access suggested fixes. For more information about resolving these issues, see Analyze your GIS resource.
Note:Analyzer help topics refer to the web layer that corresponds to the service type being published. For example, you may see references to map image layers for an analyzer issued for your map service.
- Once you've resolved any errors, and optionally resolved any warnings, click Publish. When the service has successfully published, you can do the following:
- Click the Manage the service link to access the service REST endpoint.
- If you configured your service to draw using tiles from a cache, click the Jobs button to view the cache generation status in the Job Status pane.