[OWSLib-users] RuntimeError: Document is XML, but not CSW-ish

Julie Pierson julie.pierson at cnrs.fr
Tue Dec 15 00:04:45 PST 2015


Thanks for your help Tom. I will investigate on the server side then. 
But do you know how it's possible that the CSW seems to work ok with the 
metasearch tool in QGIS then ?
Thanks again,
Julie.

Le 14/12/2015 20:57, Tom Kralidis a écrit :
>
>
> 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

-- 
Géomaticienne
UMR 5185 ADESS, CNRS
Maison des Suds
12, Esplanade des Antilles
33607 Pessac Cedex
Tel +33 (0)5 56 84 82 07
http://www.ades.cnrs.fr/



More information about the OWSLib-users mailing list