Hoi @sbjager , sorry ik dacht dat er misschien iets veranderd was aan de service. Hier is wat uitgebreidere info:
De error die ik terugkrijg:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
</body>
</html>
De bounds:
bounds = [
[124817.95,489494.68],
[124838.74,489495.47],
[124836.99,489481.08],
[124819.87,489485.07]
]
De srs: 28992
De filter XML:
<Filter>
<Intersects>
<PropertyName>geometry</PropertyName>
<gml:Polygon srsName="EPSG:28992">
<gml:exterior>
<gml:LinearRing>
<gml:posList>
124817.95 489494.68 124838.74 489495.47 124836.99 489481.08 124819.87 489485.07 124817.95 489494.68
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</Intersects>
</Filter>
En een gehele log van de request:
opening connection to service.pdok.nl:443...
opened
starting SSL for service.pdok.nl:443...
SSL established, protocol: TLSv1.2, cipher: ECDHE-RSA-AES256-GCM-SHA384
<- "GET /lv/bag/wfs/v2_0?service=wfs&version=2.0.0&request=getfeature&typenames=pand&filter=++++++%3CFilter%3E%0A++++++++%3CIntersects%3E%0A++++++++++%3CPropertyName%3Egeometry%3C%2FPropertyName%3E%0A++++++++++%3Cgml%3APolygon+srsName%3D%22EPSG%3A28992%22%3E%0A++++++++++++%3Cgml%3Aexterior%3E%0A++++++++++++%3Cgml%3ALinearRing%3E%0A++++++++++++%3Cgml%3AposList%3E%0A++++++++++++124817.95+489494.68+124838.74+489495.47+124836.99+489481.08+124819.87+489485.07+124817.95+489494.68+%0A++++++++++++%3C%2Fgml%3AposList%3E%0A++++++++++++%3C%2Fgml%3ALinearRing%3E%0A++++++++++++%3C%2Fgml%3Aexterior%3E%0A++++++++++%3C%2Fgml%3APolygon%3E%0A++++++++%3C%2FIntersects%3E%0A++++++%3C%2FFilter%3E%0A&outputFormat=application/json HTTP/1.1\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: Ruby\r\nConnection: close\r\nHost: service.pdok.nl\r\n\r\n"
-> "HTTP/1.1 400 Bad Request\r\n"
-> "Access-Control-Allow-Headers: Content-Type\r\n"
-> "Access-Control-Allow-Method: GET, POST, OPTIONS\r\n"
-> "Access-Control-Allow-Origin: *\r\n"
-> "Content-Length: 345\r\n"
-> "Content-Type: text/html\r\n"
-> "Date: Mon, 20 Feb 2023 17:19:18 GMT\r\n"
-> "Connection: close\r\n"
-> "Strict-Transport-Security: max-age=31536000; includeSubDomains; preload\r\n"
-> "\r\n"
reading 345 bytes...
-> "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n <head>\n <title>400 Bad Request</title>\n </head>\n <body>\n <h1>400 Bad Request</h1>\n </body>\n</html>\n"
read 345 bytes
Conn close
Ik hoop dat jullie er wat aan hebben
edit: oh ja en je laatste vraag, deze code werkte afgelopen week nog, onderdeel van onze test suite is exact deze request. Hij zit ook in ons product verwerkt, maar die feature wordt niet elke dag gebruikt en ik heb er nog geen klacht over gehad.