<?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 Failing queries from WAB Query widget on public server in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/failing-queries-from-wab-query-widget-on-public/m-p/705249#M35000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a public-facing Win Server 2008 R2 web server that resides on an internal network and is accessible by the public via a proxy server.&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGIS for Server 10.3 is installed on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A WAB app developed with WAB Dev 1.1 is hosted on the server.&amp;nbsp; It contains the Query widget for which I have configured a query to a locally-hosted service of a tiled geodatabase.&amp;nbsp; In config_Query.json for the widget, when the url of the service being queried is set to an internal address, i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "queries": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "Select geologic unit attributes from SGMC Geology layer",&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://geonet.esri.com/" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;internal&lt;/STRONG&gt;&lt;/SPAN&gt;/arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all queries function normally if executed from a computer on the internal network.&amp;nbsp; Such queries obviously won't work for the public.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are data from the Windows server log for a successful query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 16:01:07 INTERNAL_IP &lt;SPAN style="color: #eb7a3d;"&gt;GET&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1/query f=json&amp;amp;returnIdsOnly=true&amp;amp;where=(Generalized_Lithology%20%3D%20%27Sedimentary%2C%20carbonate%27)%20AND%20(UPPER(Age_Min)%20LIKE%20UPPER(%27%25paleozoic%25%27)%20OR%20UPPER(Age_Max)%20LIKE%20UPPER(%27%25Tertiary%25%27))&amp;amp;returnGeometry=false&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;geometry=%7B%22xmin%22%3A-12907141.088345297%2C%22ymin%22%3A4789348.7478497615%2C%22xmax%22%3A-12687461.069053616%2C%22ymax%22%3A4951089.499701257%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%7D%7D&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=102100&amp;amp;outSR=102100 80 - &lt;STRONG&gt;INTERNALcomputer&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 53&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 16:01:07 INTERNAL_IP &lt;SPAN style="color: #f1b259;"&gt;POST&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1/query - 80 - &lt;STRONG&gt;INTERNALcomputer&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 209&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 16:01:09 INTERNAL_IP &lt;SPAN style="color: #f1b259;"&gt;GET&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/tile/9/194/89 - 80 - &lt;STRONG&gt;PROXY&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 16:01:09 INTERNAL_IP &lt;SPAN style="color: #f1b259;"&gt;GET&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/tile/9/191/89 - 80 - &lt;STRONG&gt;PROXY&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 5&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the service url in the query widget json config is changed to the public address,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "queries": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "Select geologic unit attributes from SGMC Geology layer",&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://geonet.esri.com/" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;/SPAN&gt;/arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then most, &lt;SPAN style="text-decoration: underline;"&gt;but not all&lt;/SPAN&gt;, queries executed from a computer outside the internal domain fail. Here are data from the Windows server log for a failed query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 15:56:08 INTERNAL_IP &lt;SPAN style="color: #f1b259;"&gt;GET&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1/query f=json&amp;amp;returnIdsOnly=true&amp;amp;where=(Generalized_Lithology%20%3D%20%27Sedimentary%2C%20carbonate%27)%20AND%20(UPPER(Age_Min)%20LIKE%20UPPER(%27%25paleozoic%25%27)%20OR%20UPPER(Age_Max)%20LIKE%20UPPER(%27%25Tertiary%25%27))&amp;amp;returnGeometry=false&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;geometry=%7B%22xmin%22%3A-12940874.99811248%2C%22ymin%22%3A4735422.92926457%2C%22xmax%22%3A-12721194.978820799%2C%22ymax%22%3A4897163.681116065%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%7D%7D&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=102100&amp;amp;outSR=102100 80 - &lt;STRONG&gt;PROXY&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 78&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(There is no return POST request).&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;No errors or warnings are recorded in ArcGIS for Server logs.&amp;nbsp; I've asked our IT person, and he has no clue about this.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;How can I get the queries by the public to execute normally?&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/confused.png" /&gt;&amp;nbsp; The public WAB app behaves normally otherwise, including REST requests from a custom Identify widget to the same service.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Thank you in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 17:59:49 GMT</pubDate>
    <dc:creator>BarnabyRockwell</dc:creator>
    <dc:date>2015-04-15T17:59:49Z</dc:date>
    <item>
      <title>Failing queries from WAB Query widget on public server</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/failing-queries-from-wab-query-widget-on-public/m-p/705249#M35000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a public-facing Win Server 2008 R2 web server that resides on an internal network and is accessible by the public via a proxy server.&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGIS for Server 10.3 is installed on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A WAB app developed with WAB Dev 1.1 is hosted on the server.&amp;nbsp; It contains the Query widget for which I have configured a query to a locally-hosted service of a tiled geodatabase.&amp;nbsp; In config_Query.json for the widget, when the url of the service being queried is set to an internal address, i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "queries": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "Select geologic unit attributes from SGMC Geology layer",&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://geonet.esri.com/" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt;internal&lt;/STRONG&gt;&lt;/SPAN&gt;/arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all queries function normally if executed from a computer on the internal network.&amp;nbsp; Such queries obviously won't work for the public.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are data from the Windows server log for a successful query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 16:01:07 INTERNAL_IP &lt;SPAN style="color: #eb7a3d;"&gt;GET&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1/query f=json&amp;amp;returnIdsOnly=true&amp;amp;where=(Generalized_Lithology%20%3D%20%27Sedimentary%2C%20carbonate%27)%20AND%20(UPPER(Age_Min)%20LIKE%20UPPER(%27%25paleozoic%25%27)%20OR%20UPPER(Age_Max)%20LIKE%20UPPER(%27%25Tertiary%25%27))&amp;amp;returnGeometry=false&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;geometry=%7B%22xmin%22%3A-12907141.088345297%2C%22ymin%22%3A4789348.7478497615%2C%22xmax%22%3A-12687461.069053616%2C%22ymax%22%3A4951089.499701257%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%7D%7D&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=102100&amp;amp;outSR=102100 80 - &lt;STRONG&gt;INTERNALcomputer&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 53&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 16:01:07 INTERNAL_IP &lt;SPAN style="color: #f1b259;"&gt;POST&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1/query - 80 - &lt;STRONG&gt;INTERNALcomputer&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 209&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 16:01:09 INTERNAL_IP &lt;SPAN style="color: #f1b259;"&gt;GET&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/tile/9/194/89 - 80 - &lt;STRONG&gt;PROXY&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 16:01:09 INTERNAL_IP &lt;SPAN style="color: #f1b259;"&gt;GET&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/tile/9/191/89 - 80 - &lt;STRONG&gt;PROXY&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 5&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the service url in the query widget json config is changed to the public address,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "queries": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "Select geologic unit attributes from SGMC Geology layer",&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://geonet.esri.com/" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;STRONG&gt;public&lt;/STRONG&gt;&lt;/SPAN&gt;/arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then most, &lt;SPAN style="text-decoration: underline;"&gt;but not all&lt;/SPAN&gt;, queries executed from a computer outside the internal domain fail. Here are data from the Windows server log for a failed query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2015-04-14 15:56:08 INTERNAL_IP &lt;SPAN style="color: #f1b259;"&gt;GET&lt;/SPAN&gt; /arcgis/rest/services/usminmap/SGMC_March2014_Geology/MapServer/1/query f=json&amp;amp;returnIdsOnly=true&amp;amp;where=(Generalized_Lithology%20%3D%20%27Sedimentary%2C%20carbonate%27)%20AND%20(UPPER(Age_Min)%20LIKE%20UPPER(%27%25paleozoic%25%27)%20OR%20UPPER(Age_Max)%20LIKE%20UPPER(%27%25Tertiary%25%27))&amp;amp;returnGeometry=false&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;geometry=%7B%22xmin%22%3A-12940874.99811248%2C%22ymin%22%3A4735422.92926457%2C%22xmax%22%3A-12721194.978820799%2C%22ymax%22%3A4897163.681116065%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%7D%7D&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=102100&amp;amp;outSR=102100 80 - &lt;STRONG&gt;PROXY&lt;/STRONG&gt;.cr.usgs.gov Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:37.0)+Gecko/20100101+Firefox/37.0 200 0 0 78&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;(There is no return POST request).&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;No errors or warnings are recorded in ArcGIS for Server logs.&amp;nbsp; I've asked our IT person, and he has no clue about this.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;How can I get the queries by the public to execute normally?&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/confused.png" /&gt;&amp;nbsp; The public WAB app behaves normally otherwise, including REST requests from a custom Identify widget to the same service.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Thank you in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 17:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/failing-queries-from-wab-query-widget-on-public/m-p/705249#M35000</guid>
      <dc:creator>BarnabyRockwell</dc:creator>
      <dc:date>2015-04-15T17:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Failing queries from WAB Query widget on public server</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/failing-queries-from-wab-query-widget-on-public/m-p/705250#M35001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note:&amp;nbsp; In the same WAB app, I added another query to a &lt;SPAN style="text-decoration: underline;"&gt;non-cached&lt;/SPAN&gt; service consisting of a point feature class in a geodatabase, and all queries seem to work fine from inside and outside our internal network.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 18:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/failing-queries-from-wab-query-widget-on-public/m-p/705250#M35001</guid>
      <dc:creator>BarnabyRockwell</dc:creator>
      <dc:date>2015-04-15T18:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Failing queries from WAB Query widget on public server</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/failing-queries-from-wab-query-widget-on-public/m-p/705251#M35002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out our security people who manage the proxy server had a mistake in blocked directory locations on the public server.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/angry.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once they fixed it, queries of the service via the public url executed from internal and public computers complete normally.&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 21:03:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/failing-queries-from-wab-query-widget-on-public/m-p/705251#M35002</guid>
      <dc:creator>BarnabyRockwell</dc:creator>
      <dc:date>2015-04-15T21:03:43Z</dc:date>
    </item>
  </channel>
</rss>

