Skip to content

Create a Feature Service using a Custom Data Feeds Provider

There are four options for creating a custom data feeds feature service:

  • Create from a registered custom data provider (CDP) in ArcGIS Server Administrator Directory
  • Create from a registered CDP in ArcGIS Server Manager
  • Create through the CDF command line tool
  • Create from a registered CDP in Portal for ArcGIS

Create a Feature Service in ArcGIS Server Administrator Directory

After you've registered your custom data provider with ArcGIS Server, you can create a feature service that references your data provider and serves data to ArcGIS clients.

Complete the following steps to create a custom data feeds feature service in ArcGIS Server Administrator.

  1. In a web browser, navigate to the ArcGIS Server Administrator Directory, and sign in as an administrator.

  2. Click services > createService.

    arcgis server createService
  3. On the Create Service page, copy and paste the following JSON into the Service (in JSON format) text box.

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    {
        "serviceName": "<name of service>",
        "type": "FeatureServer",
        "description": "",
        "capabilities": "Query",
        "provider": "CUSTOMDATA",
        "clusterName": "default",
        "minInstancesPerNode": 0,
        "maxInstancesPerNode": 0,
        "instancesPerContainer": 1,
        "maxWaitTime": 60,
        "maxStartupTime": 300,
        "maxIdleTime": 1800,
        "maxUsageTime": 600,
        "loadBalancing": "ROUND_ROBIN",
        "isolationLevel": "HIGH",
        "configuredState": "STARTED",
        "recycleInterval": 24,
        "recycleStartTime": "00:00",
        "keepAliveInterval": 1800,
        "private": false,
        "isDefault": false,
        "maxUploadFileSize": 0,
        "allowedUploadFileTypes": "",
        "properties": {
            "disableCaching": "true"
        },
        "jsonProperties": {
            "customDataProviderInfo": {
                "dataProviderName": "<name of provider>",
                "forwardUserIdentity": "false",
                "dataProviderHost": "",
                "dataProviderId": "",
                "serviceParameters": {}
            }
        },
        "extensions": [],
        "frameworkProperties": {},
        "datasets": []
    }
  4. Provide values for the serviceParameters if your custom data provider uses them.

  5. If the provider code will make use of user identity, set, forwardUserIdentity to true.

  6. Click the Create button.

  7. Verify that a feature service was created by navigating to the ArcGIS Server Services Directory, and ensure the service is listed.

You will be able to use the URL ( https://<domain_name_or_machine_name>/<webadaptor_name>/rest/services/<service_name>/FeatureServer) of this feature service in ArcGIS clients like ArcGIS Pro, ArcGIS Online, and ArcGIS Enterprise.

Create a Feature Service in ArcGIS Server Manager

Sign into ArcGIS Server Manager and navigate to Services > Publish Service. From here, follow the built in Server Manager work flow to publish a service "From a registered custom data provider". Note that publishing a custom data feature services with service parameters isn't supported with this workflow.

Create a Feature Service in the Custom Data CLI

When registering a custom data provider from the command line, you can specify options for service creation. See Custom Data CLI Reference for more details on positionals and options. Note that publishing a custom data feature services with service parameters isn't supported with this workflow.

  1. Navigate to the app-level directory of your custom data provider.

  2. Use the command cdf register <name> <server-admin-url> <token> -s "service-name" --host "host-value" --id "id-value"

Create a Feature Service in Portal for ArcGIS

Feature services that reference custom data providers can be created in Portal for ArcGIS. Follow the instructions in this topic.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.