Hi,
In a sample app with just a single map, I am trying to load a WMS layer with the next parameters
let wmsServiceURL = URL(string: "https://geoserver.webservice-energy.org/geoserver/paca/wms?version=1.1.0")!
let wmsServiceLayerNames = ["ATLAS_PACA_MEAN_TEMPERATURE_MODIS_UNIGE_EPSG_4326_r32"]
// initialize the WMS layer with the service URL and uniquely identifying WMS layer names
let wmsLayer = AGSWMSLayer(url: wmsServiceURL, layerNames: wmsServiceLayerNames)
// load the WMS layer
wmsLayer.load { [weak self] (error) in
if let error = error {
print(error)
} else if wmsLayer.loadStatus == .loaded {
// add the WMS layer to the map
map.operationalLayers.add(wmsLayer)
}
}
No matter if I add the query param with version 1.1.0 or not, I always receive the following error:
Error Domain=com.esri.arcgis.runtime.error Code=23 "Invalid XML." UserInfo={NSLocalizedFailureReason=Error processing WMS service XML response.
XML comment is not well-formed., NSLocalizedDescription=Invalid XML., Additional Message=Error processing WMS service XML response.
XML comment is not well-formed.}The server response is a valid XML, tested in multiple validators.
I have used a proxy as well for testing purposes just to isolated the layer I want to load from the multiple I receive in the GetCapabilities server response, but unfortunately I get the same error 23 with no further explanation.
Could you help me? Do you have an idea of what is going on?
Than you in advance
Hello Daniel,
Which version of Runtime/Maps SDK are you on?
I tested this layer with latest released version of ArcGIS Maps SDK for .NET (200.8.0) and the service appeared to be working:
It's possible that there is some platform-specific issue here, so I will check with the Swift team as well.
argis-runtime-ios 100.15.6
the point is I have to make it work with that legacy version (otherwise I need to migrate the whole project to the 2xx)