Protected Site WFS raadplegen binnen polygoon geeft foutmelding

Als ik een pandgeometrie gebruik om de Protected Site (INSPIRE geharmoniseerd) te raadplegen (https://geodata.nationaalgeoregister.nl/inspire/ps/), dan krijg ik altijd een foutmelding terug:
http code 400, en het resultaat is:

<?xml version="1.0" encoding="UTF-8"?><ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://geodata.nationaalgeoregister.nl/inspire/schemas/ows/1.1.0/owsAll.xsd">
  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>java.lang.NullPointerException</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

Andere WFS’sen die ik op dezelfde manier raadpleeg gaan gewoon goed. Ik gebruik een POST met als body de volgende xml:

<wfs:GetFeature service="WFS" version="2.0.0"
    xmlns:wfs="http://www.opengis.net/wfs/2.0"
    xmlns:fes="http://www.opengis.net/fes/2.0"
    xmlns:gml="http://www.opengis.net/gml/3.2"
    xmlns:sf="http://www.openplans.org/spearfish"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.opengis.net/wfs/2.0
                        http://schemas.opengis.net/wfs/2.0/wfs.xsd
                        http://www.opengis.net/gml/3.2
                        http://schemas.opengis.net/gml/3.2.1/gml.xsd">
  <wfs:Query typeName="ps:ProtectedSite" 
             srsName="http://www.opengis.net/def/crs/EPSG/0/28992">
    <fes:Filter>
      <fes:Within>
        <fes:PropertyName>geometry</fes:PropertyName>
<gml:Polygon xmlns:gml="http://www.opengis.net/gml/3.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.opengis.net/gml/3.2
                 http://schemas.opengis.net/gml/3.2.1/gml.xsd"
             gml:id="ID1">
    <gml:exterior>
        <gml:LinearRing>
            <gml:posList>137013.533 473991.351 137013.387 473994.542 137008.074 473994.297 137008.242 473990.653 137006.69 473989.165 137005.907 473989.129 137006.064 473985.724 137007.033 473985.768 137007.107 473984.172 137015.757 473984.57 137015.68 473986.231 137016.411 473986.264 137016.252 473989.722 137015.144 473989.671 137013.533 473991.351</gml:posList>
        </gml:LinearRing>
    </gml:exterior>
</gml:Polygon>
      </fes:Within>
    </fes:Filter>
  </wfs:Query>
</wfs:GetFeature>

Ik heb al diverse verschillende dingen geprobeerd, onder andere een GML:Envelope, maar niets lijkt te werken. Iemand een idee?

Beste @sbjager,

er lijkt aan de server kant iets mis te gaan. We gaan hier naar kijken en hebben hiervoor een ticket aangemaakt.

Beste @sbjager,

Volgens mij zitten er twee foutjes in het filter. Ten eerste moet het typeNames zijn ipv typeName. Daarnaast moet je ValueReference gebruiken ipv PropertyName. De body ziet er dan als volgt uit:

<wfs:GetFeature service="WFS" version="2.0.0"
    xmlns:wfs="http://www.opengis.net/wfs/2.0"
    xmlns:fes="http://www.opengis.net/fes/2.0"
    xmlns:gml="http://www.opengis.net/gml/3.2"
    xmlns:sf="http://www.openplans.org/spearfish"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.opengis.net/wfs/2.0
                        http://schemas.opengis.net/wfs/2.0/wfs.xsd
                        http://www.opengis.net/gml/3.2
                        http://schemas.opengis.net/gml/3.2.1/gml.xsd">
  <wfs:Query typeNames="ps:ProtectedSite" 
             srsName="http://www.opengis.net/def/crs/EPSG/0/28992">
    <fes:Filter>
      <fes:Within>
        <fes:ValueReference>geometry</fes:ValueReference>
<gml:Polygon xmlns:gml="http://www.opengis.net/gml/3.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.opengis.net/gml/3.2
                 http://schemas.opengis.net/gml/3.2.1/gml.xsd"
             gml:id="ID1">
    <gml:exterior>
        <gml:LinearRing>
            <gml:posList>137013.533 473991.351 137013.387 473994.542 137008.074 473994.297 137008.242 473990.653 137006.69 473989.165 137005.907 473989.129 137006.064 473985.724 137007.033 473985.768 137007.107 473984.172 137015.757 473984.57 137015.68 473986.231 137016.411 473986.264 137016.252 473989.722 137015.144 473989.671 137013.533 473991.351</gml:posList>
        </gml:LinearRing>
    </gml:exterior>
</gml:Polygon>
      </fes:Within>
    </fes:Filter>
  </wfs:Query>
</wfs:GetFeature>