<?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 GetMap returns an HTML document in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/getmap-returns-an-html-document/m-p/1547698#M4854</link>
    <description>&lt;P&gt;I am having a strange problem with ArcGIS Server that is driving me bananas.&amp;nbsp; &amp;nbsp;I have a WMS service setup and if I do a GetMAP request using the following URI everything works perfectly:&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?VERSION=1.1.1&amp;amp;REQUEST=GetMap&amp;amp;SERVICE=WMS&amp;amp;STYLES=&amp;amp;BBOX=19724422.274933%2c9079495.967826%2c20037508.342789%2c9392582.035682&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;FORMAT=image%2fpng&amp;amp;SRS=EPSG%3a3857&amp;amp;LAYERS=2" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?VERSION=1.1.1&amp;amp;REQUEST=GetMap&amp;amp;SERVICE=WMS&amp;amp;STYLES=&amp;amp;BBOX=19724422.274933%2c9079495.967826%2c20037508.342789%2c9392582.035682&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;FORMAT=image%2fpng&amp;amp;SRS=EPSG%3a3857&amp;amp;LAYERS=2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If I change the requested SRS to EPSG:4326 with this URI:&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?VERSION=1.1.1&amp;amp;REQUEST=GetMap&amp;amp;SERVICE=WMS&amp;amp;STYLES=&amp;amp;BBOX=-180.000000%2c-90.000000%2c-90.000000%2c0.000000&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;FORMAT=image%2fpng&amp;amp;SRS=EPSG%3a4326&amp;amp;LAYERS=2" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?VERSION=1.1.1&amp;amp;REQUEST=GetMap&amp;amp;SERVICE=WMS&amp;amp;STYLES=&amp;amp;BBOX=-180.000000%2c-90.000000%2c-90.000000%2c0.000000&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;FORMAT=image%2fpng&amp;amp;SRS=EPSG%3a4326&amp;amp;LAYERS=2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It doesn't return an image; I get the following HTML page as a response:&lt;/P&gt;&lt;P&gt;HTTP/1.1 200&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;X-XSS-Protection: 1; mode=block&lt;BR /&gt;Vary: Origin&lt;BR /&gt;Cache-Control: max-age=0,must-revalidate&lt;BR /&gt;Server:&lt;BR /&gt;X-Frame-Options: SAMEORIGIN&lt;BR /&gt;ETag: 1&lt;BR /&gt;Content-Type: text/html;charset=utf-8&lt;BR /&gt;Transfer-Encoding: chunked&lt;BR /&gt;Date: Thu, 10 Oct 2024 18:07:07 GMT&lt;/P&gt;&lt;P&gt;26a&lt;BR /&gt;&amp;lt;html lang="en"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;MaritimeChartService: WMSServer&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;link href="/arcgis/rest/static/main.css" rel="stylesheet" type="text/css"/&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table width="100%" class="userTable"&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td class="titlecell"&amp;gt;&lt;BR /&gt;ArcGIS REST Services Directory&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td align="right"&amp;gt;&lt;BR /&gt;&amp;lt;a href="&lt;A href="https://localhost:6443/arcgis/rest/login" target="_blank"&gt;https://localhost:6443/arcgis/rest/login&lt;/A&gt;"&amp;gt;Login&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;| &amp;lt;a href="&lt;A href="https://localhost:6443/arcgis/tokens/" target="_blank"&gt;https://localhost:6443/arcgis/tokens/&lt;/A&gt;"&amp;gt;Get Token&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;table width="100%" class="navTable"&amp;gt;&lt;BR /&gt;&amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt;&amp;lt;td class="breadcrumbs"&amp;gt;&lt;BR /&gt;&amp;lt;a href="/arcgis/rest/services"&amp;gt;Home&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;3c8&lt;/P&gt;&lt;P&gt;&amp;amp;gt; &amp;lt;a href="/arcgis/rest/services"&amp;gt;services&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;amp;gt; &amp;lt;a href="/arcgis/rest/services/SampleWorldCities/MapServer"&amp;gt;SampleWorldCities (MapServer)&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;amp;gt; &amp;lt;a href="/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService"&amp;gt;MaritimeChartService&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;amp;gt; &amp;lt;a href="/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer"&amp;gt;WMSServer&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td align="right"&amp;gt;&lt;BR /&gt;&amp;lt;a href="&lt;A href="http://localhost:6080/arcgis/sdk/rest/02ss/02ss00000057000000.htm" target="_blank"&gt;http://localhost:6080/arcgis/sdk/rest/02ss/02ss00000057000000.htm&lt;/A&gt;" target="_blank"&amp;gt;Help&amp;lt;/a&amp;gt; | &amp;lt;a href="&lt;A href="http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?f=help" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?f=help&lt;/A&gt;" target="_blank"&amp;gt;API Reference&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td class="apiref"&amp;gt;&lt;BR /&gt;&amp;lt;a href="?f=pjson" target="_blank"&amp;gt;JSON&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;h2&amp;gt;MaritimeChartService: WMSServer&amp;lt;/h2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="rbody"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Does anyone have any idea why this is happening?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2024 18:23:48 GMT</pubDate>
    <dc:creator>ALLANGILLIS</dc:creator>
    <dc:date>2024-10-10T18:23:48Z</dc:date>
    <item>
      <title>GetMap returns an HTML document</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/getmap-returns-an-html-document/m-p/1547698#M4854</link>
      <description>&lt;P&gt;I am having a strange problem with ArcGIS Server that is driving me bananas.&amp;nbsp; &amp;nbsp;I have a WMS service setup and if I do a GetMAP request using the following URI everything works perfectly:&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?VERSION=1.1.1&amp;amp;REQUEST=GetMap&amp;amp;SERVICE=WMS&amp;amp;STYLES=&amp;amp;BBOX=19724422.274933%2c9079495.967826%2c20037508.342789%2c9392582.035682&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;FORMAT=image%2fpng&amp;amp;SRS=EPSG%3a3857&amp;amp;LAYERS=2" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?VERSION=1.1.1&amp;amp;REQUEST=GetMap&amp;amp;SERVICE=WMS&amp;amp;STYLES=&amp;amp;BBOX=19724422.274933%2c9079495.967826%2c20037508.342789%2c9392582.035682&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;FORMAT=image%2fpng&amp;amp;SRS=EPSG%3a3857&amp;amp;LAYERS=2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If I change the requested SRS to EPSG:4326 with this URI:&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?VERSION=1.1.1&amp;amp;REQUEST=GetMap&amp;amp;SERVICE=WMS&amp;amp;STYLES=&amp;amp;BBOX=-180.000000%2c-90.000000%2c-90.000000%2c0.000000&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;FORMAT=image%2fpng&amp;amp;SRS=EPSG%3a4326&amp;amp;LAYERS=2" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?VERSION=1.1.1&amp;amp;REQUEST=GetMap&amp;amp;SERVICE=WMS&amp;amp;STYLES=&amp;amp;BBOX=-180.000000%2c-90.000000%2c-90.000000%2c0.000000&amp;amp;WIDTH=256&amp;amp;HEIGHT=256&amp;amp;FORMAT=image%2fpng&amp;amp;SRS=EPSG%3a4326&amp;amp;LAYERS=2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It doesn't return an image; I get the following HTML page as a response:&lt;/P&gt;&lt;P&gt;HTTP/1.1 200&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;X-XSS-Protection: 1; mode=block&lt;BR /&gt;Vary: Origin&lt;BR /&gt;Cache-Control: max-age=0,must-revalidate&lt;BR /&gt;Server:&lt;BR /&gt;X-Frame-Options: SAMEORIGIN&lt;BR /&gt;ETag: 1&lt;BR /&gt;Content-Type: text/html;charset=utf-8&lt;BR /&gt;Transfer-Encoding: chunked&lt;BR /&gt;Date: Thu, 10 Oct 2024 18:07:07 GMT&lt;/P&gt;&lt;P&gt;26a&lt;BR /&gt;&amp;lt;html lang="en"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;MaritimeChartService: WMSServer&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;link href="/arcgis/rest/static/main.css" rel="stylesheet" type="text/css"/&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table width="100%" class="userTable"&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td class="titlecell"&amp;gt;&lt;BR /&gt;ArcGIS REST Services Directory&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td align="right"&amp;gt;&lt;BR /&gt;&amp;lt;a href="&lt;A href="https://localhost:6443/arcgis/rest/login" target="_blank"&gt;https://localhost:6443/arcgis/rest/login&lt;/A&gt;"&amp;gt;Login&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;| &amp;lt;a href="&lt;A href="https://localhost:6443/arcgis/tokens/" target="_blank"&gt;https://localhost:6443/arcgis/tokens/&lt;/A&gt;"&amp;gt;Get Token&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;table width="100%" class="navTable"&amp;gt;&lt;BR /&gt;&amp;lt;tr valign="top"&amp;gt;&lt;BR /&gt;&amp;lt;td class="breadcrumbs"&amp;gt;&lt;BR /&gt;&amp;lt;a href="/arcgis/rest/services"&amp;gt;Home&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;3c8&lt;/P&gt;&lt;P&gt;&amp;amp;gt; &amp;lt;a href="/arcgis/rest/services"&amp;gt;services&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;amp;gt; &amp;lt;a href="/arcgis/rest/services/SampleWorldCities/MapServer"&amp;gt;SampleWorldCities (MapServer)&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;amp;gt; &amp;lt;a href="/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService"&amp;gt;MaritimeChartService&amp;lt;/a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;amp;gt; &amp;lt;a href="/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer"&amp;gt;WMSServer&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td align="right"&amp;gt;&lt;BR /&gt;&amp;lt;a href="&lt;A href="http://localhost:6080/arcgis/sdk/rest/02ss/02ss00000057000000.htm" target="_blank"&gt;http://localhost:6080/arcgis/sdk/rest/02ss/02ss00000057000000.htm&lt;/A&gt;" target="_blank"&amp;gt;Help&amp;lt;/a&amp;gt; | &amp;lt;a href="&lt;A href="http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?f=help" target="_blank"&gt;http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer?f=help&lt;/A&gt;" target="_blank"&amp;gt;API Reference&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;td class="apiref"&amp;gt;&lt;BR /&gt;&amp;lt;a href="?f=pjson" target="_blank"&amp;gt;JSON&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;h2&amp;gt;MaritimeChartService: WMSServer&amp;lt;/h2&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="rbody"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;P&gt;Does anyone have any idea why this is happening?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 18:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/getmap-returns-an-html-document/m-p/1547698#M4854</guid>
      <dc:creator>ALLANGILLIS</dc:creator>
      <dc:date>2024-10-10T18:23:48Z</dc:date>
    </item>
  </channel>
</rss>

