Publishing a hosted feature service using an ArcMap document
From ArcMap, you can publish a feature service to be hosted on your portal. The service will expose all vector datasets included in the map document.
Before proceeding, be sure ArcGIS for Desktop is connected to your portal.
By default, editing is not enabled on hosted feature services. You can enable editing from ArcMap when you publish the service or overwrite an existing service. Alternatively, you can edit the feature service properties in the portal website to allow editing.
![Caution Caution](rsrc/caution.png)
If you overwrite the service, the existing service item is deleted from the portal, a new item is created with the same name, but the item is created in the root folder and is assigned a new ID. You will need to reconfigure sharing and, if necessary, move the item back to the folder it was in before you republished. You will also have to reconfigure any popups or symbology you previously saved on the item.
Also note that web browsers cannot display some of the more complex cartographic symbols you might have originally used when you authored the map in ArcMap. Most symbol types are available, but in some cases the symbols may be downgraded when you publish them. See Authoring feature services in the ArcGIS for Server Help for more details about what symbols are supported, then make any required changes to your map symbology prior to publishing.
- Start ArcMap and open the map you want to publish.
- Click File> Sign In.
- Type your name and password for your portal and click Sign In.
- Click File > Share As > Service.
- Choose Publish a service and click Next.
- In the drop-down list of connection types, choose My Hosted Services. Then type a name for your service and click Continue.
- In the left pane of the Service Editor, click Capabilities, then check Feature Access to expose your service as a feature service. You can optionally also check Tiled Mapping, although in most scenarios, you would use a different set of layers and a different map document for publishing your tiled map.
You can click the subitem Feature Access in the left pane of the Service Editor to set advanced properties relating to what clients can do with the service. To learn how to adjust the types of edits that end users can make to your feature service, see Editor permissions for feature services.
- Set other properties that you want for your 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 information on how to best configure your services for deployment, see Tuning and configuring services. Some of the service properties referenced in that topic apply only to ArcGIS for Server and are not applicable when working with hosted services.
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 configuration work at a later time. By default, draft services are saved in the Drafts folder of your connection to My Hosted Services. For more information, see About draft services.
There are a few additional properties you must set that are specific to hosted services. These are detailed in the following steps.
- In the left pane of the Service Editor, click Item Description and enter a summary and tags for your service. You'll need to enter this information before you can publish the service. For more information, see Setting map service properties.
- In the left pane of the Service Editor, click Sharing and choose who the service should be shared with. By default, your service is shared to My Content only, meaning it is only accessible to you. Your service will always be visible in My Content, but you can also choose to share it with everyone, members of your organization, or just members of certain groups.
- In the Service Editor, click
Analyze. This examines your map to see if it can be published as a service. You must fix the Errors
in the Prepare window before you can publish your map as a service. Optionally, you can fix the warnings and informational messages to further improve the performance and appearance of your service. For more information about resolving these issues, see Analyzing your GIS resource.
- Optionally, in the Service Editor, click
Preview. This can give you an idea of how your service will look when viewed on the web.
- Once you've fixed the errors and optionally any warnings and messages, click
Publish.
Note:
Your data is copied to the server at this point. The size of the data and your Internet connection speed and bandwidth will impact the time it takes to publish.
Once your service is published, you'll see it when you expand the My Hosted Services node in the Catalog window.
By default, feature services published from an ArcMap document only return 1000 records. This limit is configurable in the publisher dialog box when publishing a new service or overwriting an existing service. You can also update this limit on existing services from the service properties in ArcGIS Server Manager. Set the Maximum Number of Records Returned by Server property to the desired value.