<?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: Is there already a .NET client library for accessing ArcGIS REST API? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-already-a-net-client-library-for/m-p/363475#M1731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that the answer to your question is no.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously, you can use an ESRI SDK such as the ArcGIS Runtime SDK for WPF:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/communities/runtime-wpf/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/communities/runtime-wpf/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For .NET, I do think that you want to have a set of strongly typed classes which expose async methods that check the result and throw exceptions when it is something other than success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach is to dynamically form and issue requests and then parse the returned JSON.&amp;nbsp; I personally don't think much of this approach but believe that is what ESRI does under the covers.&amp;nbsp; When you start mapping the results to strong types, i.e. classes, you will see seams where the implementation of the REST API is not well done.&amp;nbsp; One example, and there are many, is that some APIs do not document the JSON syntax of the response on failure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have largely written and used my own classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Dec 2013 11:16:24 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2013-12-27T11:16:24Z</dc:date>
    <item>
      <title>Is there already a .NET client library for accessing ArcGIS REST API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-already-a-net-client-library-for/m-p/363474#M1730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been working on a &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/WSDOT-GIS/ArcGisServerRestApiWrapper" rel="nofollow" target="_blank"&gt;.NET client library for the ArcGIS REST API&lt;/A&gt;&lt;SPAN&gt;, adding features as I need them. Before I put too much work into this I just wanted to make sure something like this doesn't already exist elsewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is anyone aware of a .NET client library for the ArcGIS REST API (other than my incomplete one that I linked above)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 17:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-already-a-net-client-library-for/m-p/363474#M1730</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2013-12-26T17:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there already a .NET client library for accessing ArcGIS REST API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-already-a-net-client-library-for/m-p/363475#M1731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that the answer to your question is no.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously, you can use an ESRI SDK such as the ArcGIS Runtime SDK for WPF:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/communities/runtime-wpf/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/communities/runtime-wpf/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For .NET, I do think that you want to have a set of strongly typed classes which expose async methods that check the result and throw exceptions when it is something other than success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach is to dynamically form and issue requests and then parse the returned JSON.&amp;nbsp; I personally don't think much of this approach but believe that is what ESRI does under the covers.&amp;nbsp; When you start mapping the results to strong types, i.e. classes, you will see seams where the implementation of the REST API is not well done.&amp;nbsp; One example, and there are many, is that some APIs do not document the JSON syntax of the response on failure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have largely written and used my own classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 11:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-already-a-net-client-library-for/m-p/363475#M1731</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-12-27T11:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there already a .NET client library for accessing ArcGIS REST API?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-already-a-net-client-library-for/m-p/363476#M1732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@rlwatson, Thanks for the info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't want to use the ArcGIS Runtime SDK for WPF due to the complications with licensing and authorization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll be using your suggested approach: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;For .NET, I do think that you want to have a set of strongly typed&amp;nbsp; classes which expose async methods that check the result and throw&amp;nbsp; exceptions when it is something other than success.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Background: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently updating a legacy ASP.NET Web Forms application that currently uses the ArcGIS SOAP SDK to call Esri's free routing service. Esri is dropping support for this service at the end of this year, so I need to update the application to use &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Route_service/02r300000036000000/"&gt;their new routing service&lt;/A&gt;&lt;SPAN&gt;. As far as I can tell there is no SOAP endpoint for this service, so I need to use REST instead. (The new service also requires a OAuth login, where the old one did not.)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 16:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/is-there-already-a-net-client-library-for/m-p/363476#M1732</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2013-12-27T16:55:28Z</dc:date>
    </item>
  </channel>
</rss>

