<?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: How do I get AGSOfflineMapTask to make requests to public-facing urls instead of those behind firewall? in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-get-agsofflinemaptask-to-make-requests-to/m-p/719810#M6432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When taking the webmap offline, the task inspects the layer URLs embedded in the webmap to start preparing their data. Are you embedding internal URls in the webmap? If so, that might be problem.&lt;BR /&gt;Can you try using public URLs when adding layers to the webmap and see if that resolves the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Sep 2020 04:17:45 GMT</pubDate>
    <dc:creator>DiveshGoyal</dc:creator>
    <dc:date>2020-09-24T04:17:45Z</dc:date>
    <item>
      <title>How do I get AGSOfflineMapTask to make requests to public-facing urls instead of those behind firewall?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-get-agsofflinemaptask-to-make-requests-to/m-p/719809#M6431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an iOS Runtime SDK application (v 100.7) to which I recently added an offline mode which allows the user to select an area of interest on the map and a replica is created including all the feature services. I followed the pattern described in&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/latest/swift/guide/take-map-offline-on-demand.htm"&gt;this article&lt;/A&gt;&amp;nbsp;if you want to see implementation details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AGSOfflineMapTask is created from a web map portal item I created on my company's on-premise Portal (enterprise 10.7.1). We use a&amp;nbsp; reverse proxy server configured like&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/server/latest/administer/linux/GUID-B363F1DA-8E6A-40E4-935A-9F0CAF9F3AA0-web.png"&gt;this diagram&lt;/A&gt;. Activating offline mode fails and generates the following error for every service contained in the web map: "A server with the specified hostname could not be found", then gives the url of the internal url rather than the public-facing url outside the firewall.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error -1003: A server with the specified hostname could not be found" class="image-1 jive-image" height="261" src="https://community.esri.com/legacyfs/online/508311_offline-error.png" width="486" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made sure that the url for the web map portal item supplied to the AGSOfflineMapTask uses the public-facing url, but it seems that the call to start() function makes requests to the internal urls and I don't have a way to change that, so the requests are being blocked by the firewall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently relying on a workaround by temporarily changing the hosting server for portal to the dmz url and republishing all the services contained in the map which works, but this is not a good solution because it violates our security policy. I&amp;nbsp;could use a suggestion for a better way of downloading a portion of the map for offline use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 23:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-get-agsofflinemaptask-to-make-requests-to/m-p/719809#M6431</guid>
      <dc:creator>CoryDavis</dc:creator>
      <dc:date>2020-09-23T23:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get AGSOfflineMapTask to make requests to public-facing urls instead of those behind firewall?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-get-agsofflinemaptask-to-make-requests-to/m-p/719810#M6432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When taking the webmap offline, the task inspects the layer URLs embedded in the webmap to start preparing their data. Are you embedding internal URls in the webmap? If so, that might be problem.&lt;BR /&gt;Can you try using public URLs when adding layers to the webmap and see if that resolves the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2020 04:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-get-agsofflinemaptask-to-make-requests-to/m-p/719810#M6432</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2020-09-24T04:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get AGSOfflineMapTask to make requests to public-facing urls instead of those behind firewall?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-get-agsofflinemaptask-to-make-requests-to/m-p/719811#M6433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That turned out to be exactly the problem. My feature services were added using the "Search for Layer" and selected from the portal. The services were published using the hosting server which is behind the firewall. Adding them from the web and entering the pubic facing url worked like a charm.&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2020 00:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-do-i-get-agsofflinemaptask-to-make-requests-to/m-p/719811#M6433</guid>
      <dc:creator>CoryDavis</dc:creator>
      <dc:date>2020-09-26T00:01:35Z</dc:date>
    </item>
  </channel>
</rss>

