I can see using Charles network proxy that my WMS GetCapabilities request is using version 1.3.0.
The WMS server I'm talking to, requires 1.1.1.
The AGSWMSLayer.version property is read-only.
How do I change the version?
thanks in advance!
Hi Chris,
Based on the WMS standard documentation said:
"A WMS client may negotiate with a server to determine a mutually agreeable protocol version. Negotiation isperformed using the GetCapabilities operation according to the following rules.
A WMS client may negotiate with a server to determine a mutually agreeable protocol version. Negotiation is performed using the GetCapabilities operation (described in 7.2) according to the following rules. All service metadata shall include a protocol version number and shall comply with the XML DTD or Schema defined for that version. In response to a GetCapabilities request (for which the VERSION parameter is optional) that does not specify a version number, the server shall respond with the highest version it supports. In response to a GetCapabilities request containing a version number that the server implements, the server shall send that version.
For more details, you can check this documentation and search "Version number negotiation"
http://portal.opengeospatial.org/files/?artifact_id=14416
You can try to define the specific the parameters of a WMS GetCapabilities through request URL, if that WMS Layer allow you to do so, for example: