<?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: Synchronous AGSFeatureLayer initialization fails: SDK 10.1.1 &amp;lt;--&amp;gt; AGS 10.1 in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/synchronous-agsfeaturelayer-initialization-fails/m-p/179511#M1664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now digging further it seems they have an invalid tokenServicesUrl in /rest/info?f=json. Will fix and retry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2013 14:38:02 GMT</pubDate>
    <dc:creator>KristofferStenersen</dc:creator>
    <dc:date>2013-04-10T14:38:02Z</dc:date>
    <item>
      <title>Synchronous AGSFeatureLayer initialization fails: SDK 10.1.1 &amp;amp;lt;--&amp;amp;gt; AGS 10.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/synchronous-agsfeaturelayer-initialization-fails/m-p/179510#M1663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi forum,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our customer just bumped their ArcGIS server from 10.05 to 10.11, and they re-published their MXD to the new server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need some details from a feature service, so at some point I fetch the service by initializing a feauture layer, synchronously:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;NSError *error = nil;&lt;BR /&gt;AGSFeatureLayer *lyr = [[AGSFeatureLayer alloc] initWithURL:url mode:AGSFeatureLayerModeOnDemand credential:[Globals getCredential] error:&amp;amp;error];&lt;BR /&gt;if (!lyr.fields) { /* a problem */ }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now. Of course I have.. a problem.. Looking at the ?f=pjson on the two services, they look the same to me. But in the debugger, the layer just does not seem correct at all:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;(lldb) po [lyr encodeToJSON]&lt;BR /&gt;$1 = 0x12008bc0 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; allowGeometryUpdates = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; currentVersion = "9.3";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; drawingInfo =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; editable = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometryType = "";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hasAttachments = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; id = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxScale = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; minScale = 0;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I´m about to try 10-1-1-u1 and cross some fingers, but I submitted this app for review yesterdays so it´s already kind of sad. Attached the json for both new and old feature services. Any ideas what is going on?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 14:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/synchronous-agsfeaturelayer-initialization-fails/m-p/179510#M1663</guid>
      <dc:creator>KristofferStenersen</dc:creator>
      <dc:date>2013-04-10T14:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous AGSFeatureLayer initialization fails: SDK 10.1.1 &lt;--&gt; AGS 10.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/synchronous-agsfeaturelayer-initialization-fails/m-p/179511#M1664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now digging further it seems they have an invalid tokenServicesUrl in /rest/info?f=json. Will fix and retry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 14:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/synchronous-agsfeaturelayer-initialization-fails/m-p/179511#M1664</guid>
      <dc:creator>KristofferStenersen</dc:creator>
      <dc:date>2013-04-10T14:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous AGSFeatureLayer initialization fails: SDK 10.1.1 &lt;--&gt; AGS 10.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/synchronous-agsfeaturelayer-initialization-fails/m-p/179512#M1665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It should just work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 14:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/synchronous-agsfeaturelayer-initialization-fails/m-p/179512#M1665</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2013-04-10T14:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronous AGSFeatureLayer initialization fails: SDK 10.1.1 &lt;--&gt; AGS 10.1</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/synchronous-agsfeaturelayer-initialization-fails/m-p/179513#M1666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The error was as suspected, that /rest/info?f=json returned an invalid token service url. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The constructor (above) takes an AGSCredential. This object only has a username/password, and needs the token service url. So when runtime asks AGS server for the token URL, bad things happen. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In 10.1, the token service url is somehow fetched from some URL header (afaik, this is not my table, but in 10.0 this could be configured in some config) - so the IT guys had to make ssome DNS/reverse proxy/firewall tuning to make this run. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its pretty strange though, that the synced constructor of AGSFeatureService did not return an error (is nil in my case) here, but initialized with some funny 9.3-values.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 07:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/synchronous-agsfeaturelayer-initialization-fails/m-p/179513#M1666</guid>
      <dc:creator>KristofferStenersen</dc:creator>
      <dc:date>2013-04-11T07:56:25Z</dc:date>
    </item>
  </channel>
</rss>

