Your custom data provider must be bundled into a custom data package
file (.cdpk) in order to deploy it to ArcGIS Server. To build a .cdpk
file, your provider must have a valid cdconfig.json file in the root of
the custom data provider directory. The cdconfig.json file is generated when you create a
custom data provider using the createprovider command. Below are the
auto-generated contents of the file.
{
"name": "<name-of-provider>",
"arcgisVersion": "11.5.0",
"parentServiceType": "FeatureServer",
"customdataRuntimeVersion": "1",
"type": "provider",
"properties": {
"hosts": false,
"disableIdParam": true,
"serviceParameters": []
}
}Change the values of the hosts and disable fields depending
on whether your provider requires the host and id URL parameters. If the provider requires service parameters, enter these in the service array.
To package your provider into a .cdpk file, run
the cdf export <namecommand at the command line in the
custom data app directory.
After the .cdpk file has been successfully created, the contents of cdconfig.json are again updated to the reflect the file name of your new .cdpk file as seen below.
{
"name": "<name-of-provider>",
"arcgisVersion": "11.5.0",
"parentServiceType": "FeatureServer",
"customdataRuntimeVersion": "1",
"type": "provider",
"properties": {
"hosts": false,
"disableIdParam": true,
"serviceParameters": []
},
"fileName": "<name-of-provider>.cdpk"
}