<?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: arcgis application which publishes a map on arcgis server in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-application-which-publishes-a-map-on-arcgis/m-p/622984#M16744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could be wrong but I think python is the only way to publish a map service programmatically these days.&amp;nbsp; But doing so is fairly simple just write a python script which calls the 3 publishing tools (CreateMapSDDraft, StageService, UploadServiceDefinition) and call the python script in your C# code - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;//mxdfolder, mxd are variables for the mxd on the local system; serverFolder is the folder on my ArcGIS Server to publish the mapservice in string pypath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\publisher.py";&amp;nbsp; ProcessStartInfo psi = new ProcessStartInfo(ConfigurationManager.AppSettings["PythonPath"] + "\\python.exe", pypath + " " + mxdfolder + " " + mxd + " " +serverFolder); psi.UseShellExecute = false; using (Process proc = Process.Start(psi)) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc.WaitForExit(); }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at the online help for the publishing python tools, there's a complete working example of the python to use, just adapt to your needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Terry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 15:33:05 GMT</pubDate>
    <dc:creator>TerryGiles</dc:creator>
    <dc:date>2014-06-02T15:33:05Z</dc:date>
    <item>
      <title>arcgis application which publishes a map on arcgis server</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-application-which-publishes-a-map-on-arcgis/m-p/622983#M16743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Community !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new into ArcGIS / ArcGIS developers. I am running on&amp;nbsp; Windows 7, Visual Studio .NET 2012. I program in C#.&amp;nbsp; I would be interested in creating a simple application which would take as input a map and then publish it on the ArcGIS Server which would expose it to world. Its my first project, so I don't know where to start from. Can you&amp;nbsp; point me what sort of ArcGIS project should I start or a simple "Hello World" application for my task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Duktech.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 06:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-application-which-publishes-a-map-on-arcgis/m-p/622983#M16743</guid>
      <dc:creator>MariusRata</dc:creator>
      <dc:date>2014-06-02T06:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: arcgis application which publishes a map on arcgis server</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-application-which-publishes-a-map-on-arcgis/m-p/622984#M16744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I could be wrong but I think python is the only way to publish a map service programmatically these days.&amp;nbsp; But doing so is fairly simple just write a python script which calls the 3 publishing tools (CreateMapSDDraft, StageService, UploadServiceDefinition) and call the python script in your C# code - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;//mxdfolder, mxd are variables for the mxd on the local system; serverFolder is the folder on my ArcGIS Server to publish the mapservice in string pypath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\publisher.py";&amp;nbsp; ProcessStartInfo psi = new ProcessStartInfo(ConfigurationManager.AppSettings["PythonPath"] + "\\python.exe", pypath + " " + mxdfolder + " " + mxd + " " +serverFolder); psi.UseShellExecute = false; using (Process proc = Process.Start(psi)) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc.WaitForExit(); }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at the online help for the publishing python tools, there's a complete working example of the python to use, just adapt to your needs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Terry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 15:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-application-which-publishes-a-map-on-arcgis/m-p/622984#M16744</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2014-06-02T15:33:05Z</dc:date>
    </item>
  </channel>
</rss>

