<?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: Consuming geoprocessor service from ActionScript in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717767#M15933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tarekesri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert, my GP service does work as a published service. But only within rest interface. Its does not work when I try to consume it within an ActionScript application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Ivan &amp;amp; Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2012 11:45:12 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-01-17T11:45:12Z</dc:date>
    <item>
      <title>Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717758#M15924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tarekesri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGIS API for flex. I'm trying to consume a geoprocessing service developed with Arcgismanager interface. The service works fine when I use the url of its task (see "task_GP_service" figure). When I try to execute it with ActionScript code it doesn't work (see the ActionScript code figure).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 16:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717758#M15924</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-01-16T16:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717759#M15925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ibespalov&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarak,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some ESRI documentation for you: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/help/017p/017p00000003000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;concepts&lt;/A&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tasks/Geoprocessor.html" rel="nofollow noopener noreferrer" target="_blank"&gt;reference&lt;/A&gt;&lt;SPAN&gt;, and &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/01nq/01nq00000023000000.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;samples with source code&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like geoprocessor task input params are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-size:1;"&gt;var params:Object = new Object();
params.in_features = "C:\Donnees\Adriatic\Adriatic.gdb\Situation_Geo\Sites_archeo";
params.buffer_distance_or_field = { "distance" : 2.678, "units" : "esriMiles" };
gp.execute(params);&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:44:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717759#M15925</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T06:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717760#M15926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ivan, I still don't get any result (in Task directory) as I get it from the rest interface (see first figure in my first thread).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the new code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private var in_features:String;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private var buffer_distance_or_field:LinearUnit;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private function executer():void &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var params:Object = new Object();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; params.in_features = "C:\Donnees\Adriatic\Adriatic.gdb\Situation_Geo\Sites_archeo";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; params.buffer_distance_or_field = { "distance" : 2.678, "units" : "esriMiles" };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; gp.submitJob(params); // since it's an asynchronous task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&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;Tarek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 22:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717760#M15926</guid>
      <dc:creator>TarakSbouai</dc:creator>
      <dc:date>2012-01-16T22:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717761#M15927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: rscheitlin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Your distance parameter is still not correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import com.esri.ags.Units;
import com.esri.ags.tasks.supportClasses.LinearUnit;

params.buffer_distance_or_field = new LinearUnit(2.678, Units.MILES);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:44:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717761#M15927</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T06:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717762#M15928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no error in the code. However, when I execute it from Flash Builder (even with the modifications you suggested), I still get no output. I assume the output layer of the buffer operation should be in the arcgisjobs (the output of the GP server defined with ArcGIS Server manager).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thing; tha service task url contains space, do you think that causes a problem? see code in attached figure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 08:57:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717762#M15928</guid>
      <dc:creator>TarakSbouai</dc:creator>
      <dc:date>2012-01-17T08:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717763#M15929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ibespalov&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From ArcGIS server help - &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/0093/00930000002t000000.htm"&gt;Publishing geoprocessing services&lt;/A&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;"&lt;SPAN style="font-style:italic;"&gt;...The service name should not contain spaces...&lt;/SPAN&gt;"&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]11217[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 09:14:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717763#M15929</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-01-17T09:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717764#M15930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ivan, I used another GP service with Erase task (called Effacer) so the url won't contain any space. However, I still don't get any result (I still get an output when I use the rest interface (see figures)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 10:38:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717764#M15930</guid>
      <dc:creator>TarakSbouai</dc:creator>
      <dc:date>2012-01-17T10:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717765#M15931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ibespalov&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarak,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's just some kind of magic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please read help provided by Flex API developers. Geoprocessor task has some number of public properties. You must configure it before using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, if you have more questions, please paste code with Geoprocessor task public properties, result listener, fault listener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/01nq/01nq0000006t000000.htm"&gt;here is sample&lt;/A&gt;&lt;SPAN&gt;. Take a look on GP properties, job complete listener and fault listener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try to examine you requests / server responses using developer tools. Some time it helps to find wrong request parameter. You can also compare requests you made from FLEX application and requests you send from ArcGIS services directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In IE browser - F12 (developer tools) -&amp;gt; &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/gg130952(v=vs.85).aspx"&gt;Network tab&lt;/A&gt;&lt;SPAN&gt; -&amp;gt; Start capturing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Chrome browser - F12 (developer tools) -&amp;gt; &lt;/SPAN&gt;&lt;A href="http://code.google.com/intl/ru-RU/chrome/devtools/docs/network.html"&gt;Network tab&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In FF browser - &lt;/SPAN&gt;&lt;A href="http://getfirebug.com/network"&gt;Firebug&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/bb250446(v=vs.85).aspx"&gt;Fiddler&lt;/A&gt;&lt;SPAN&gt; from MSDN&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 11:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717765#M15931</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-01-17T11:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717766#M15932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tarak,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; To add to what Ivan is saying you need to understand that just because a GP service works in ArcMap does not gaurnetee it working as a published service. There are many things you have to do to make your GP Service a published GP service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at this link and search for info on scratchworkspace as you should be using that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Key_concepts_for_geoprocessing_services/009300000029000000/"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Key_concepts_for_geoprocessing_services/009300000029000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 11:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717766#M15932</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2012-01-17T11:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717767#M15933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tarekesri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert, my GP service does work as a published service. But only within rest interface. Its does not work when I try to consume it within an ActionScript application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Ivan &amp;amp; Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 11:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717767#M15933</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-01-17T11:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717768#M15934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used Firebug, and I noticed that no call to the server was made. Any clue, or any example about how to trace the sever call in submitJob method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the actionScript code used to consume the GP service (based on a .tbx)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 12:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717768#M15934</guid>
      <dc:creator>TarakSbouai</dc:creator>
      <dc:date>2012-01-20T12:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming geoprocessor service from ActionScript</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717769#M15935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: tarekesri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I developed a .tbx from a model builder. From that .tbx, I published a GP service that I call within a Flex code (Button "buffer"). It works !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 12:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-geoprocessor-service-from-actionscript/m-p/717769#M15935</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-02-02T12:31:21Z</dc:date>
    </item>
  </channel>
</rss>

