<?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: REST API - View in &amp;quot;ArcGIS JavaScript&amp;quot; link not working (Reverse Proxy) in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200877#M974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ravi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; I am using ArcGIS Server for .NET, not Java - sorry, I should have mentioned that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would seem to me that the ReverseProxyPort tag in rest.config would be the analagous setting for .NET.&amp;nbsp; But the .NET documentation does not even mention that tag so I cannot be sure.&amp;nbsp; And when I tried to change that value to 8080, it did not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts about what to do for .NET?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 16:33:31 GMT</pubDate>
    <dc:creator>DavidMarley</dc:creator>
    <dc:date>2012-02-08T16:33:31Z</dc:date>
    <item>
      <title>REST API - View in &amp;amp;quot;ArcGIS JavaScript&amp;amp;quot; link not working (Reverse Proxy)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200875#M972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a test/development ArcGIS Server 10 instance, configured for Internet access using a standard reverse proxy configuration (Server 2003 / IIS 6 / Apache HTTP and mod_proxy - configured per Esri guidelines).&amp;nbsp; Most of the REST API is working fine from the Internet side.&amp;nbsp; I can generate map images, consume services in Flex and Silverlight..many other things.&amp;nbsp; The things that are not working are the View in &lt;/SPAN&gt;&lt;STRONG&gt;ArcGIS JavaScript &lt;/STRONG&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;STRONG&gt;ArcGIS.com Map&lt;/STRONG&gt;&lt;SPAN&gt; links from the MapServer pages.&amp;nbsp; I have updated rest.config with the appropriate external urls (SoapUrl and the others, as noted &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300001657000000"&gt;here &lt;/A&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/07/23/Why-don_2700_t-some-of-the-links-work-in-my-ArcGIS-Services-Directory_3F00_.aspx"&gt;here&lt;/A&gt;&lt;SPAN&gt;) and &lt;/SPAN&gt;&lt;STRONG&gt;am &lt;/STRONG&gt;&lt;SPAN&gt;able to &lt;/SPAN&gt;&lt;STRONG&gt;View in ArcMap&lt;/STRONG&gt;&lt;SPAN&gt; using that link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After clicking View in ArcGIS JavaScript for a service, I look at the response in Firebug and can see that the url the JavaScript API is using does not have the port (8080) appended after the dns name in the Url.&amp;nbsp; So the Javascript code in the response looks like this (note no&lt;/SPAN&gt;&lt;STRONG&gt; :8080&lt;/STRONG&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://www.&amp;lt;my-domain-name&amp;gt;.com/ArcGIS/rest/services/&amp;lt;folder&amp;gt;/&amp;lt;service&amp;gt;/MapServer");&lt;/PRE&gt;&lt;SPAN&gt;but should be this (note the &lt;/SPAN&gt;&lt;STRONG&gt;:8080 &lt;/STRONG&gt;&lt;SPAN&gt;after the domain name):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://www.&amp;lt;my-domain-name&amp;gt;.com:8080/ArcGIS/rest/services/&amp;lt;folder&amp;gt;/&amp;lt;service&amp;gt;/MapServer");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I copy/paste the response HTML into a new htm page and add the :8080 myself, it works perfectly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also as noted above, the "View in ArcMap" link works fine externally as do most other aspects of the REST API, so the map service Urls and rest.config appear to all be configured properly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So any ideas why the :8080 is getting dropped?&amp;nbsp; I assume this is a REST configuration issue.&amp;nbsp; Does the ReverseProxyPort tag in rest.config have anything to do with this?&amp;nbsp; I can't find any documentation on what that tag is suppose to do.&amp;nbsp; I tried changing it to 8080 but that brought my whole site down, so that (alone) clearly is not the solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The server in question is running ArcGIS Server 10 SP 2.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 19:12:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200875#M972</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2012-02-07T19:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - View in "ArcGIS JavaScript" link not working (Reverse Proxy)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200876#M973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this ArcGIS Server for Java? Is so, the reverse proxy port needs to be configured. See this help topic for more info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/config.html#jports"&gt;http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/config.html#jports&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;config.reverse-proxy-http-port=8080&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 15:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200876#M973</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2012-02-08T15:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - View in "ArcGIS JavaScript" link not working (Reverse Proxy)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200877#M974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ravi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; I am using ArcGIS Server for .NET, not Java - sorry, I should have mentioned that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would seem to me that the ReverseProxyPort tag in rest.config would be the analagous setting for .NET.&amp;nbsp; But the .NET documentation does not even mention that tag so I cannot be sure.&amp;nbsp; And when I tried to change that value to 8080, it did not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts about what to do for .NET?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200877#M974</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2012-02-08T16:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - View in "ArcGIS JavaScript" link not working (Reverse Proxy)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200878#M975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The recommended solution in .NET is to set the port (not reverse proxy port ) value to the external port. Can you give this a try?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 14:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200878#M975</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2012-02-14T14:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - View in "ArcGIS JavaScript" link not working (Reverse Proxy)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200879#M976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i'm having this exact same problem; not being able to view footprints in JS api through reverse proxy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever find the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 18:11:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200879#M976</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2012-03-16T18:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - View in "ArcGIS JavaScript" link not working (Reverse Proxy)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200880#M977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I finally got a chance to check this out. Changing the value of the "Port" setting in rest.config &lt;/SPAN&gt;&lt;STRONG&gt;does &lt;/STRONG&gt;&lt;SPAN&gt;fix the external "ArcGIS JavaScript" link, but then the link no longer works via the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;internal &lt;/SPAN&gt;&lt;SPAN&gt;url. Inspecting the internal url via Firebug, I can see (as expected) it is appending the 8080 port to the internal url as well, which is incorrect:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;myserver&amp;gt;:8080/arcgis/...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So apparently the JavaScript link can only work for one or the other -- internal or external -- but not both, which does not make much sense. Something's not adding up here - there is a setting "ReverseProxyPort" which does not appear to do anything, and a setting "Port" which affects both the internal and reverse proxy port. Seems like there's an issue inside ArcGIS Server here -- the .NET version anyway.&amp;nbsp; From Ravi's comments above it seems that this does work for Java deployments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it appears, at least for now, that I will have to live with the external (or the internal) link not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, the server in question is now upgraded to Service Pack 4 - but that has not made a difference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 11:27:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200880#M977</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2012-04-17T11:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - View in "ArcGIS JavaScript" link not working (Reverse Proxy)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200881#M978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a solution for this ever been found?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dominic&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 02:40:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200881#M978</guid>
      <dc:creator>DominicDoiron</dc:creator>
      <dc:date>2012-09-12T02:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - View in "ArcGIS JavaScript" link not working (Reverse Proxy)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200882#M979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No I never found anything beyond the information in my previous post - which is basically that you can either have it work &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;internally &lt;/SPAN&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;externally&lt;/SPAN&gt;&lt;SPAN&gt;, but not both. It appears to only use the "Port" value and ignores the "ReverseProxyPort" setting - to me this sounds like a bug where somewhere under the hood AGS uses Port somewhere where it should be using ReverseProxyPort. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that at this point Service Pack 5 is out - and I have not applied that to see if it fixes the issue.&amp;nbsp; I don't see anything like this listed under the issues addressed with SP5, so my guess would be that it's not fixed still:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://gisupdates.esri.com/10sp5/ArcGIS/ArcGIS10sp5-issues.htm#Rest-sp5"&gt;http://gisupdates.esri.com/10sp5/ArcGIS/ArcGIS10sp5-issues.htm#Rest-sp5&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:24:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-view-in-amp-amp-quot-arcgis-javascript/m-p/200882#M979</guid>
      <dc:creator>DavidMarley</dc:creator>
      <dc:date>2012-09-12T11:24:34Z</dc:date>
    </item>
  </channel>
</rss>

