Does anyone know if it is possible to refresh an ArcIMS service with ArcObjects and if so do you have a nice code snippet? :)
I think it might have something to do with interface IIMSAxlRequest - but not sure how to use it...
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityDoes anyone know if it is possible to refresh an ArcIMS service with ArcObjects and if so do you have a nice code snippet? :)
I think it might have something to do with interface IIMSAxlRequest - but not sure how to use it...
No you can't use ArcObjects.
Your best bet is too just restart the ArcIMS services. Simply doing a refresh like you would in the admin console may not refresh any fields that have been added or removed from the map service. Only a restart of the services will guarantee that.
You could script the restart with a batch file.
net stop "ArcIMS Tasker 10.0.0"
net stop "ArcIMS Monitor 10.0.0"
net stop "ArcIMS Application Server 10.0.0"
net start "ArcIMS Application Server 10.0.0"
net start "ArcIMS Monitor 10.0.0"
net start "ArcIMS Tasker 10.0.0"
You could also remove the map service and add it back in if you don't want to take down ArcIMS Services.