Select to view content in your preferred language

How to script the publishing of a WMServer type service?

2928
2
Jump to solution
08-12-2015 10:44 AM
AlisonGaiser1
Occasional Contributor

In our current environment we have nightly scripts that publish our services from our batch server to our production servers. We make use of the service definition file for our map services and the arcpy call UploadServiceDefinition_server. Since we do not have .sd files associated with a WMServer this is not an option we can follow.

Since we use Workflow Manager Administrator to publish the service, I am curious to know if there is any method we can use to script the publishing of the service?

I notice that the Rest Admin API does not mention WMX services at 10.2.2 ArcGIS REST API   Are there plans for this to change

Thanks,

     Alison

0 Kudos
1 Solution

Accepted Solutions
KevinBedel
Esri Contributor

Hi Alison,

Currently there is no way to create a SD file via Python, but you can use Workflow Manager Administrator to create the SD file on disk rather than publishing it. You can then use UploadServiceDefinition_server to publish it to whichever server you want. We will look into adding the ability to create the SD files via GP tool or Python in a future release.

We will also look at adding the Workflow Manager REST API documentation to the document you noted above. For now you can access the Workflow Manager REST documentation here: ArcGIS Workflow Manager REST API

Thanks,

Kevin

View solution in original post

0 Kudos
2 Replies
KevinBedel
Esri Contributor

Hi Alison,

Currently there is no way to create a SD file via Python, but you can use Workflow Manager Administrator to create the SD file on disk rather than publishing it. You can then use UploadServiceDefinition_server to publish it to whichever server you want. We will look into adding the ability to create the SD files via GP tool or Python in a future release.

We will also look at adding the Workflow Manager REST API documentation to the document you noted above. For now you can access the Workflow Manager REST documentation here: ArcGIS Workflow Manager REST API

Thanks,

Kevin

0 Kudos
AlisonGaiser1
Occasional Contributor

Thanks Kevin. The .sd file is perfect for our current workflows. This is the methodology we use for our geoprocessing services, so this will go well with our current code base.

Alison

0 Kudos