AnsweredAssumed Answered

Create service with network capabilities

Question asked by Tobias.Litherlandgeodata-no-esridist Employee on Dec 10, 2013
Latest reply on Dec 11, 2013 by Tobias.Litherlandgeodata-no-esridist
Hi,

I need to create a Python script that automatically publishes services with network capabilities. To do this, I use the function arcpy.mapping.CreateMapSDDraft to create a draft from an MXD. The mxd contains network layers, and the service needs to be capable of network analysis, so I need to activate the Network Analysis capability before publishing the service.

What I can't fathom is how to add network capabilities to the service. I see all the examples of how to add KmlServer and WMSServer and Feature Access and what not, but I can't understand which variables need to be set to what for the network capabilitiy, and I can't find any documentation for it.

I also tried checking the differences between the XML code in sddraft files for two different ArcMap-created drafts (one with network, one without), but I was none the wiser. There was just too much code.

Please help, if you can!

Tobias

Outcomes