[CITE-Forum] WFS 2.0.0 test failure due to wrong namespace prefix

Dennis Lümkemann Dennis.Luemkemann at isb-ag.de
Tue Jun 12 04:18:25 EDT 2018

Dear all,

I'm trying to successfully run the WFS 2.0.0 test in Team Engine (OGC-hosted) against our WFS service. Unfortunately, the tests stop at an early stage because of a namespace issue:

Capabilities are retrieved successfully. They contain a list of supported features, for an example see end of this post.

In the following GetFeature request, the test suite uses a self-generated namespace prefix ("ns89") for a namespace already defined in the Capabilities (prefix "au"):

<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs/2.0" count="25" startIndex="0" service="WFS" version="2.0.0">
        <wfs:Query xmlns:ns89="https://<ourserver-url>/WFS_INSP_BW_Verwaltungeinheiten_BasisDLM/4.0" typeNames="ns89:AdministrativeUnit"/>

We are using a proxy for authorization and this proxy checks the requested namespace prefix. Since "ns89" is not known, the request is rejected and the test fails.

My question:
Does the server have to accept these "invented" namespace prefixes? I couldn't find anything in the WFS 2.0.0 spec in this respect. But I'm surprised this is happening. Why doesn't the test simply use the namespace prefix supplied in the Capabilities?

Looking forward to some insights from the experts :)


Capabilities excerpt:
            <Name xmlns:au="https://<ourserver-url>/WFS_INSP_BW_Verwaltungeinheiten_BasisDLM/4.0">au:AdministrativeUnit</Name>
                <ows:Keyword>Administrative Unit</ows:Keyword>
                <Format>application/gml+xml; version=3.2</Format>
                <Format>text/xml; subtype=gml/3.2.1</Format>
                <ows:LowerCorner>7.448903 47.530245</ows:LowerCorner>
                <ows:UpperCorner>10.529065 49.792735</ows:UpperCorner>
            <MetadataURL xlink:href="http://<metadataserver-url>?Service=CSW&Request=GetRecordById&Version=2.0.2&id=b3e5b904-206b-0245-7472-c7e2c33c3d2b&outputSchema=http://www.isotc211.org/2005/gmd&elementSetName=full"/>

More information about the CITE-Forum mailing list