BUG

WMS Connector does not return error message when unsupported SRS is requested

Last Published: April 25, 2020

Description

When sending a WMS request, ArcIMS will return an error message if the Spatial Reference System code (SRS) is not recognized. At ArcIMS 9.1 Service Pack 1 the error message is "Invalid SRS Value."

This sample Capabilities File fragment and the following GetMap request may cause such a problem.

Capabilities File fragment:

Code:
...
<Layer queryable="0" opaque="0" noSubsets="0">
<Name>wmstest</Name>
<Title>wmstest</Title>
<SRS>EPSG:4326</SRS>
<SRS>EPSG:4327</SRS>
<LatLonBoundingBox minx="-180" miny="-90" maxx="180" maxy="90"/>
...

Request:

Code:
http://myserver/wmsconnector/com.esri.wms.Esrimap/wmsservice
?service=WMS
&request=GetMap
&Layers=wmstest
&Styles=
&Version=1.1.1
&SRS=EPSG:4328
&BBOX=-180,180,-90,90
&width=400
&height=300&


Note:
EPSG:4328 is not listed in capabilities file, therefore an error exception will be returned:

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<ServiceExceptionReport version="1.1.1">
<ServiceException code="InvalidSRS">
Invalid SRS value
</ServiceException>
</ServiceExceptionReport>


Cause

In WMS, a Spatial Reference System (SRS) is a text parameter that specifies a horizontal coordinate reference system code. When a WMS GetMap request is issued with an SRS value not listed in the WMS Capabilities file, the WMS Connector returns an exception stating it has encountered an invalid SRS.

Workaround

Before sending GetMap requests to WMS Service, make sure that the SRS value you request is listed in that WMS Service's capabilities file. WMS Connector doesn't support any SRS values that are not listed in capabilities file.

    Article ID:000008313

    Software:
    • Legacy Products

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Related Information

    Discover more on this topic