fgpv-vpgf / rcs

RAMP Configuration Service
http://fgpv-vpgf.github.io/rcs
1 stars 8 forks source link

Capabilities docs being returned as a wrong MIME type are not being parsed #70

Open dan-bowerman opened 7 years ago

dan-bowerman commented 7 years ago

A service like http://afc-fr.cfsnet.nfis.org/arcgis/services/FGP/fias10/MapServer/WMSServer?VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=wms does not come back as the correct XML mimetype, which causes the upgrade function (and possibly other functions) to fail. Adjust RCS to be more permissive about the file type that comes back.

dan-bowerman commented 7 years ago

Sample registration request, for posterity:

{
    "fr": {
        "feature_info_format": "text/plain",
        "service_url": "http://afc-fr.cfsnet.nfis.org/arcgis/services/FGP/fias10/MapServer/WMSServer",
        "service_type": "ogcWms",
        "legend_format": "image/png",
        "recursive": true,
        "service_name": "WMS french"
    },
    "en": {
        "feature_info_format": "text/plain",
        "service_url": "http://afc-fr.cfsnet.nfis.org/arcgis/services/FGP/fias10/MapServer/WMSServer",
        "service_type": "ogcWms",
        "legend_format": "image/png",
        "recursive": true,
        "service_name": "WMS english"
    },
    "version": "2.0"
}
dan-bowerman commented 7 years ago

The service owners seem to have just fixed this service, so now it comes back as proper XML and is readable in RCS and RAMP. Will put this issue on hold for now until another service comes along with this MIME issue.