<?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: GPServer soap service execute script in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256243#M1633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Runtime SDK For .NET&amp;nbsp;consumes REST API so it would be the REST endpoint that you pass when creating&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/N_Esri_ArcGISRuntime_Tasks_Geoprocessing.htm"&gt; GeoprocessingTask&lt;/A&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2016 19:54:10 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2016-12-15T19:54:10Z</dc:date>
    <item>
      <title>GPServer soap service execute script</title>
      <link>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256242#M1632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have published a python script to run as a rest service which enables me to run it through the web using an ajax call on javascript.&lt;/P&gt;&lt;P&gt;I couldn't find a way to consume that service with csharp using its SOAP endpoint. Anyone knows to refer me for a code example?&lt;/P&gt;&lt;P&gt;I have tried to add a web reference to that service in my library project but it doesn't seems to help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 16:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256242#M1632</guid>
      <dc:creator>SvivaManager</dc:creator>
      <dc:date>2016-12-15T16:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer soap service execute script</title>
      <link>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256243#M1633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcGIS Runtime SDK For .NET&amp;nbsp;consumes REST API so it would be the REST endpoint that you pass when creating&lt;A href="https://developers.arcgis.com/net/latest/wpf/api-reference//html/N_Esri_ArcGISRuntime_Tasks_Geoprocessing.htm"&gt; GeoprocessingTask&lt;/A&gt;. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 19:54:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256243#M1633</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2016-12-15T19:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer soap service execute script</title>
      <link>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256244#M1634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that's what I was looking for.. I don't suppose you may know why can't I catch the job execution when it ends? I tried both Async and no Async but when the scope is over I just can't go to the completion scope (Geoprocessor_JobCompleted)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Dec 2016 15:48:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256244#M1634</guid>
      <dc:creator>SvivaManager</dc:creator>
      <dc:date>2016-12-18T15:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer soap service execute script</title>
      <link>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256245#M1635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can hook into JobChanged event to handle different status changes but normally you would just call job.GetResultAsync and after that is completed you get the results from the analysis.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// Create job that communicates with the server&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; job &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; geoprocessingTask&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;CreateJob&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;parameters&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// Hook into changed event and log messages&lt;/SPAN&gt;
job&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;JobChanged &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;job&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Status &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; Esri&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISRuntime&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Tasks&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;JobStatus&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Succeeded&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// Do stuff&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$&lt;SPAN class="string token"&gt;"Geoprocessing job: {job.Messages.Last().Message}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// Execute geoprocessing and wait results&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; results &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; job&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetResultAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:38:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256245#M1635</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2021-12-11T12:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer soap service execute script</title>
      <link>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256246#M1636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;for the suggestion! I'm actually working with a class&amp;nbsp;called Geoprocessor. I couldn't find a geoprocessingTask class, so I don't have a CreateJob function. However, I do have a function called SubmitJob and I'm&amp;nbsp;able to run a function called CheckJobStatus to check the status of the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having two problems here:&lt;/P&gt;&lt;P&gt;1- It's a WCF Service and I need to return an output. I want to return an output based on the result but I need to wait for the result before retrieving it.. and it doesn't work well.. Right after the job execution I run the status check and it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- I'm unable to retrieve the output. The documentation shows an example with an event called JobCompleted, but I can't seem to reach it.. might be because of the first problem I mentioned.. it's a WCF service and a result must return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe it's for a new post..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 16:04:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256246#M1636</guid>
      <dc:creator>SvivaManager</dc:creator>
      <dc:date>2016-12-20T16:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer soap service execute script</title>
      <link>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256247#M1637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, you are using 10.2.X api. Could you share your code with me (&lt;A href="mailto:akajanus@esri.com"&gt;akajanus@esri.com&lt;/A&gt;). I can give you much better answer after looking into the code and a service rest endpoint. Note that we don't support SOAP based services in ArcGIS Runtime geoprocessing, the service endpoint needs to be the REST (JSON) based endpoint from a geoprocessing service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 13:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256247#M1637</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2016-12-22T13:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer soap service execute script</title>
      <link>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256248#M1638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seeing this just now sorry. I'll send it over thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 14:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256248#M1638</guid>
      <dc:creator>SvivaManager</dc:creator>
      <dc:date>2017-01-09T14:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: GPServer soap service execute script</title>
      <link>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256249#M1639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So after a nice chat by mail, the simple answer is that my implementation was wrong, since the runtime SDK was not meant to be used as a server side solution with a WCF or any other web services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can think of a few different solutions but I'll have to try them first to see if they work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More info in the following link -&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/message/605185?commentID=605185#comment-605185"&gt;&lt;SPAN style="text-decoration: underline;"&gt;https://community.esri.com/message/605185?commentID=605185#comment-605185&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/20744"&gt;antti kajanus&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 12:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/gpserver-soap-service-execute-script/m-p/256249#M1639</guid>
      <dc:creator>SvivaManager</dc:creator>
      <dc:date>2017-01-23T12:11:53Z</dc:date>
    </item>
  </channel>
</rss>

