geopython / OWSLib

OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (hence OWS) interface standards, and their related content models.
https://owslib.readthedocs.io
BSD 3-Clause "New" or "Revised" License
392 stars 278 forks source link

bonares csw returns 'Document is XML, but not CSW-ish' #916

Closed pvgenuchten closed 7 months ago

pvgenuchten commented 7 months ago

when using below url as csw service

https://maps.bonares.de/soapServices/CSWStartup

from owslib.csw import CatalogueServiceWeb
csw = CatalogueServiceWeb('https://maps.bonares.de/soapServices/CSWStartup')
csw.getdomain('GetRecords.resultType')

we get error:

Document is XML, but not CSW-ish

The software behind this endpoint is smart finder based on arcgis server stack

The issue came up when i was trying to connect qgis metasearch to this endpoint, but then realised that the warning is coming from owslib

pvgenuchten commented 7 months ago

web request

<csw:GetDomain xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows" service="CSW" version="2.0.2" xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd"><csw:ParameterName>GetRecords.resultType</csw:ParameterName></csw:GetDomain>

to https://maps.bonares.de/soapServices/CSWStartup, results in:

<ows:ExceptionReport
    xmlns:ows="http://www.opengis.net/ows" version="1.0.0">
    <ows:Exception exceptionCode="NoApplicableCode">
        <ows:ExceptionText>smart.finder SDI CSW (Discovery20): getDomian: smart.finder SDI CSW (GetJob): Thread interrupted:  Diagnostic: GetDomainJob: Exception:Invalid Parameter Name: </ows:ExceptionText>
    </ows:Exception>
</ows:ExceptionReport>

service capabilities does not list any parameters for the getDomain request

In the portal server docs esri indicates that getdomain is currently not supported, also that it is an optional request