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://my_geoserver.com?version=1.1.0")!
let wmsServiceLayerNames = ["my_layer_name"]
// 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