tligon

Programatically update a map service

Discussion created by tligon on Mar 30, 2011
Latest reply on Mar 31, 2011 by garnertb
At this point, I just want to know if the following is possible by writing code (probably VB or even Python?):

   1. Open a map document and update the data source of several shapefiles
   2. Save the map document
   3. Stop and restart the map service associated with the map document
   4. Empty the map server cache so that the map document changes are propagated to the map service

BTW, Server 9.3 running on a Windows 2008 server

Outcomes