<?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 Consume Geoprocessing Service in ArcObjects Project in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/consume-geoprocessing-service-in-arcobjects/m-p/328908#M8552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to call a "clip and ship" geoprocessing web service via arcobjects.&amp;nbsp; The input parameter is a feature (to define an area of interest).&amp;nbsp; The gp service requires a user name and password to connect.&amp;nbsp; Are there any resources available that touch on how to do this?&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 19:29:39 GMT</pubDate>
    <dc:creator>olivermcrobbie</dc:creator>
    <dc:date>2013-11-26T19:29:39Z</dc:date>
    <item>
      <title>Consume Geoprocessing Service in ArcObjects Project</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/consume-geoprocessing-service-in-arcobjects/m-p/328908#M8552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to call a "clip and ship" geoprocessing web service via arcobjects.&amp;nbsp; The input parameter is a feature (to define an area of interest).&amp;nbsp; The gp service requires a user name and password to connect.&amp;nbsp; Are there any resources available that touch on how to do this?&amp;nbsp; Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 19:29:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/consume-geoprocessing-service-in-arcobjects/m-p/328908#M8552</guid>
      <dc:creator>olivermcrobbie</dc:creator>
      <dc:date>2013-11-26T19:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Consume Geoprocessing Service in ArcObjects Project</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/consume-geoprocessing-service-in-arcobjects/m-p/328909#M8553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here are some references that could be useful&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JAVA&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-java/api/arcobjects/com/esri/arcgis/geoprocessing/IGPServer.html"&gt;http://resources.arcgis.com/en/help/arcobjects-java/api/arcobjects/com/esri/arcgis/geoprocessing/IGPServer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.NET&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Geoprocessing_services/000100000482000000/"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Geoprocessing_services/000100000482000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can access the same thing locally using ArcObjects Geoprocessing rather than ArcGIS Server's geoprocessing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/index.html"&gt;http://help.arcgis.com/en/sdk/10.0/java_ao_adf/api/arcobjects/index.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 19:05:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/consume-geoprocessing-service-in-arcobjects/m-p/328909#M8553</guid>
      <dc:creator>SachinKanaujia</dc:creator>
      <dc:date>2013-11-27T19:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Consume Geoprocessing Service in ArcObjects Project</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/consume-geoprocessing-service-in-arcobjects/m-p/328910#M8554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply Sachin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess the only thing I am unclear about is connecting to the gp service using credentials.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did find this snipnet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;ESRI.ArcGIS.ADF.Identity identity = new ESRI.ArcGIS.ADF.Identity("user", "passwd", "domain");
ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection ags_connection;
agsconnection = new ESRI.ArcGIS.ADF.Connection.AGS.AGSServerConnection("hostname", identity);
agsconnection.Connect();
IServerObjectManager som = agsconnection.ServerObjectManager;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other option:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reading the api reference, I see that the geoprocessor constructor can take an IServerContext object.&amp;nbsp; Can I pass my credentials to the server context object?&amp;nbsp; It says the context object is a dictionary.&amp;nbsp; Is the server looking for specific keys? (ie., "username", "password")&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not been able to find a sample demonstrating connecting to a gp service using credentials.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:34:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/consume-geoprocessing-service-in-arcobjects/m-p/328910#M8554</guid>
      <dc:creator>olivermcrobbie</dc:creator>
      <dc:date>2021-12-11T15:34:38Z</dc:date>
    </item>
  </channel>
</rss>

