[OWSLib-users] RuntimeError: Document is XML, but not CSW-ish
Tom Kralidis
tomkralidis at gmail.com
Mon Dec 14 11:57:59 PST 2015
On Mon, 14 Dec 2015, Julie Pierson wrote:
> Date: Mon, 14 Dec 2015 16:24:56 +0100
> From: Julie Pierson <julie.pierson at cnrs.fr>
> To: owslib-users at lists.osgeo.org
> Subject: [OWSLib-users] RuntimeError: Document is XML, but not CSW-ish
>
> Hi list,
>
> I'm using csw.getrecords2 on several csw. For most of them, everything
> works fine, but I encounter a problem for this one :
> http://www.geocatalogue.fr/api-public/servicesRest?SERVICE=CSW
>
> I get this error :
> File "/mnt/python_modules/owslib/csw.py", line 680, in _invoke
> raise RuntimeError('Document is XML, but not CSW-ish')
> RuntimeError: Document is XML, but not CSW-ish
>
> I tried using the metasearch tool in QGIS and it works fine for this
> same csw.
>
> Does anyone know what may be the cause of this error ? Maybe I am
> missing something obvious ?
>
In this case, OWSLib is making a standard CSW GetRecords request.
The CSW above is instead returning a SOAP encoded response. This is an error
with the server.
Hope this helps.
..Tom
More information about the OWSLib-users
mailing list