AnsweredAssumed Answered

Is it possible to republish GP-service automatically using Python?

Question asked by annevo on Apr 4, 2016
Latest reply on Jun 23, 2016 by khibma-esristaff

Dear All.

 

At the moment my users place mxds in a specific folder.

1) I publish these mxd's as map services.

2) In addition I have a have a GP-service that creates cad-files based upon the content of the mxd's (the service).

 

I have several mxd's, meaning several map services.

I only have on GP-model, but this is used for all the different map services.

 

Everytime the content of the mxd is changed, the map-service is republished.

In addition I then need to republish the GP-services. Otherwise the GP-service reference the wrong map content.

 

Is it somehow possible using Python to do this republishing of the GP-service automatically? As it is now I have to do it manually. Everytime the mxd is republished, I have to republish the GP-service manually. Sometimes I forget, meaning when my users exports to CAD from the web, they see one content in the map, and another content in the exported CAD.

 

Best regards Anne.

Outcomes