<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create Service with Capabilities in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431775#M33956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In order to enable/disable capabilities, you have to use Python to modify the XML structure of the .sddraft. There are examples here: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resourcesdev.arcgis.com/en/help/main/10.1/index.html#/CreateMapSDDraft/00s30000006q000000/" rel="nofollow" target="_blank"&gt;http://resourcesdev.arcgis.com/en/help/main/10.1/index.html#/CreateMapSDDraft/00s30000006q000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at Modify SDDraft example 3 and 4.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 16:59:23 GMT</pubDate>
    <dc:creator>JeffMoulds</dc:creator>
    <dc:date>2013-01-02T16:59:23Z</dc:date>
    <item>
      <title>Create Service with Capabilities</title>
      <link>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431774#M33955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have written a python script to create a map service. The bulk of the script is three commands basically to verify the map document, create a service definition file, and then publish. The script works fine, except that it does not set the capabilities. For example, in one service, I would like to turn off KML, and turn on Network Analyst. I searched but could not find out how to do this. Here is the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;analysis = arcpy.mapping.CreateMapSDDraft(mapDoc, sddraft, service, 'ARCGIS_SERVER', con, True, None, summary, tags)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;result = arcpy.StageService_server(sddraft, sd)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;result = arcpy.UploadServiceDefinition_server(sd, con)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gregg&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 12:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431774#M33955</guid>
      <dc:creator>GreggCountryman</dc:creator>
      <dc:date>2012-12-19T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create Service with Capabilities</title>
      <link>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431775#M33956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In order to enable/disable capabilities, you have to use Python to modify the XML structure of the .sddraft. There are examples here: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resourcesdev.arcgis.com/en/help/main/10.1/index.html#/CreateMapSDDraft/00s30000006q000000/" rel="nofollow" target="_blank"&gt;http://resourcesdev.arcgis.com/en/help/main/10.1/index.html#/CreateMapSDDraft/00s30000006q000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at Modify SDDraft example 3 and 4.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 16:59:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431775#M33956</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2013-01-02T16:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create Service with Capabilities</title>
      <link>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431776#M33957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is the .sddraft XML schema published somewhere.&amp;nbsp; How does one know what the possible choices are when modifying the XML to fit one's needs?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 22:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431776#M33957</guid>
      <dc:creator>AnnStark</dc:creator>
      <dc:date>2013-04-22T22:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create Service with Capabilities</title>
      <link>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431777#M33958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In order to enable/disable capabilities, you have to use Python to modify the XML structure of the .sddraft. There are examples here: &lt;A href="http://resourcesdev.arcgis.com/en/help/main/10.1/index.html#/CreateMapSDDraft/00s30000006q000000/"&gt;http://resourcesdev.arcgis.com/en/help/main/10.1/index.html#/CreateMapSDDraft/00s30000006q000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Look at Modify SDDraft example 3 and 4.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jeff&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently trying to access this link however it's not working at the moment. I am also trying to modify an .sddraft file and would like to use an xml tile cache schema file to update the caching details of the .sddraft. Would you have an updated url?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Carma&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 22:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431777#M33958</guid>
      <dc:creator>CarmaGerber</dc:creator>
      <dc:date>2014-05-28T22:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create Service with Capabilities</title>
      <link>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431778#M33959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/CreateMapSDDraft/00s30000006q000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/CreateMapSDDraft/00s30000006q000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 22:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431778#M33959</guid>
      <dc:creator>MatthewDobson</dc:creator>
      <dc:date>2014-05-28T22:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Service with Capabilities</title>
      <link>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431779#M33960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Matt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just realised this is the Help document I have been reading for the past few days. I have used it to work out how to update the cache status of an .sddraft however it doesn't go further in updating the tiling scheme which is now what I need to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Carma Gerber&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 22:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-service-with-capabilities/m-p/431779#M33960</guid>
      <dc:creator>CarmaGerber</dc:creator>
      <dc:date>2014-05-28T22:20:20Z</dc:date>
    </item>
  </channel>
</rss>

