fgpv-vpgf / rcs

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

Can't register esriDynamic layers #93

Closed jvanulde closed 6 years ago

jvanulde commented 6 years ago

Using the following configuration:

{
    "fr": {
    "service_url": "http://www.agr.gc.ca/atlas/rest/services/mapservices/aafc_national_ecological_framework_of_canada/MapServer",
    "layerEntries":[36],
    "service_type": "esriDynamic",
    "service_name": "Soil Texture by Ecoprovince"
    },
    "en": {
    "service_url": "http://www.agr.gc.ca/atlas/rest/services/mapservices/aafc_national_ecological_framework_of_canada/MapServer",
        "layerEntries": [36],
    "service_type": "esriDynamic",
    "service_name": "Soil Texture by Ecoprovince"
    },
    "version": "2.0"
}

I get:

2018-05-10T15:43:35.634Z {"errors": ["{u'service_type': u'esriDynamic', u'service_name': u'Soil Texture by Ecoprovince', u'service_url': u'http://www.agr.gc.ca/atlas/rest/services/mapservices/aafc_national_ecological_framework_of_canada/MapServer', u'layerEntries': [36]} is not valid under any of the given schemas", "{u'service_type': u'esriDynamic', u'service_name': u'Soil Texture by Ecoprovince', u'service_url': u' http://www.agr.gc.ca/atlas/rest/services/mapservices/aafc_national_ecological_framework_of_canada/MapServer', u'layerEntries': [36]} is not valid under any of the given schemas"]}

2018-05-10T15:43:35.631Z put failed 400

Any ideas on why this isn't working?

james-rae commented 6 years ago

It looks like you're mixing RAMP config conventions with RCS config conventions.

I was able to get a test registration to work with the following snippet:

{
    "fr": {
        "service_url": "http://www.agr.gc.ca/atlas/rest/services/mapservices/aafc_national_ecological_framework_of_canada/MapServer",
        "scrape_only":[36],
        "service_type": "esriMapServer",
        "service_name": "Soil Texture by Ecoprovince"
    },
    "en": {
        "service_url": "http://www.agr.gc.ca/atlas/rest/services/mapservices/aafc_national_ecological_framework_of_canada/MapServer",
        "scrape_only": [36],
        "service_type": "esriMapServer",
        "service_name": "Soil Texture by Ecoprovince"
    },
    "version": "2.0"
}

Post back if this still doesn't work for you

jvanulde commented 6 years ago

Thanks @james-rae that works.