Publish an image service and set configurations


PurposeThis sample shows how to programmatically publish an image service to ArcGIS 10.1 for Server. It illustrates how to connect to a server admin endpoint, create an image service and set parameters and capabilities based on data source type (mosaic dataset, raster dataset, raster layer), and enable Web Coverage Service (WCS) and Web Map Service (WMS). Additional functionalities include starting, stopping, and deleting an image service.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

How to use
  1. Start Visual Studio, open the solution file, and compile the program.
  2. Run isconfig from the command line environment. To run this utility, both the client and ArcGIS Server need to have access to the data source. See the Additional information section below.
  3. This sample only populates commonly used properties in this configuration, you may need to alter some of them based on your service requirements.
  4. Caching and REST metadata/thumbnail/iteminfo are not handled in this sample. Caching can be created after service creating through caching geoprocessing tools, and REST metadata/thumbnail/iteminfo can be created by making calls to ArcGIS Server admin endpoint.

Additional information

  • Usage 1: isconfig -o publish -h <host_admin_url> -u <adminuser> -p <adminpassword> -d <datapath> -n <serviceName>
  • Usage 2: isconfig -o <delete|start|stop> -h <host_admin_url> -u <adminuser> -p <adminpassword> -n <serviceName>
  • Usage 3: isconfig -o <list> -h <host_admin_url> -u <adminuser> -p <adminpassword>
  • Example 1: isconfig -o publish -h http://host:6080/arcgis/admin -d \\myserver\data\test.gdb\mdtest -n mdtest -u adminuser -p adminpassword
  • Example 2: isconfig -o stop -h http://host:6080/arcgis/admin -n mdtest -u adminuser -p adminpassword
  • Example 3: isconfig -o list -h http://host:6080/arcgis/admin -u adminuser -p adminpassword


ISConfig.cs Source code for configuring an image service.
Download the C# files
ISConfig.vb Source code for configuring an image service.
Download the VB.NET files

Download the files for all languages




Development licensing Deployment licensing
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
Engine Developer Kit Engine