This 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.