I am having a strange problem with ArcGIS Server that is driving me bananas. I have a WMS service setup and if I do a GetMAP request using the following URI everything works perfectly:
If I change the requested SRS to EPSG:4326 with this URI:
It doesn't return an image; I get the following HTML page as a response:
HTTP/1.1 200
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Vary: Origin
Cache-Control: max-age=0,must-revalidate
Server:
X-Frame-Options: SAMEORIGIN
ETag: 1
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Date: Thu, 10 Oct 2024 18:07:07 GMT
26a
<html lang="en">
<head>
<title>MaritimeChartService: WMSServer</title>
<link href="/arcgis/rest/static/main.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<table width="100%" class="userTable">
<tr>
<td class="titlecell">
ArcGIS REST Services Directory
</td>
<td align="right">
<a href="https://localhost:6443/arcgis/rest/login">Login</a>
| <a href="https://localhost:6443/arcgis/tokens/">Get Token</a>
</td>
</tr>
</table>
<table width="100%" class="navTable">
<tr valign="top">
<td class="breadcrumbs">
<a href="/arcgis/rest/services">Home</a>
3c8
> <a href="/arcgis/rest/services">services</a>
> <a href="/arcgis/rest/services/SampleWorldCities/MapServer">SampleWorldCities (MapServer)</a>
> <a href="/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService">MaritimeChartService</a>
> <a href="/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMSServer">WMSServer</a>
</td>
<td align="right">
<a href="http://localhost:6080/arcgis/sdk/rest/02ss/02ss00000057000000.htm" target="_blank">Help</a> | <a href="http://localhost:6080/arcgis/rest/services/SampleWorldCities/MapServer/exts/MaritimeChartService/WMS..." target="_blank">API Reference</a>
</td>
</tr>
</table><table>
<tr>
<td class="apiref">
<a href="?f=pjson" target="_blank">JSON</a>
</td>
</tr>
</table>
<h2>MaritimeChartService: WMSServer</h2>
<div class="rbody">
<br/>
<br/><br/></div>
<br/><br/></body></html>
Does anyone have any idea why this is happening?