<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Based on information provided privately by Jens, the connection
string to use should also include the namespaces parameter. I
presume the server behind is Deegree which is quite pedantic about
that. The QGIS WFS client automatically adds it, whereas the OGR
WFS one not (it should likely)</p>
<p>So use:<br>
</p>
<p>WFS:<a class="moz-txt-link-freetext" href="https://services.datafordeler.dk/GeoDanmarkVektor/GeoDanmark60_HIST_GML3/1.0.0/WFS?servicename=wfs&REQUEST=DescribeFeatureType&SERVICE=WFS&username=">https://services.datafordeler.dk/GeoDanmarkVektor/GeoDanmark60_HIST_GML3/1.0.0/WFS?servicename=wfs&REQUEST=DescribeFeatureType&SERVICE=WFS&username=</a>{your_username}&password={your_password}&version=2.0.0&typenames=Afvandingsgroeft&namespaces=xmlns(gdk60,http%3A%2F%2Fdata.gov.dk%2Fschemas%2Fgeodanmark60%2F2%2Fgml3)<br>
</p>
<div class="moz-cite-prefix">Le 19/06/2021 à 00:51, Even Rouault a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:98502d6e-1bee-1093-cd09-d0cfad77ba39@spatialys.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Jens,</p>
<p>when writing a report, remember that the reader cannot see your
screen. So at a minimum, provide the connection string to that
WFS service that you provide to GDAL.</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 19/06/2021 à 00:43, Jens Søe
Christiansen a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAD=UezpRR+tLGAYjSWZBfqjkv+ehPdSJWr=anwZ1cqPy037YXA@mail.gmail.com">
<div dir="ltr">Hi
<div>I'm desperately trying to read data from a Danish WFS
service. Everything is working well until I try to
GetNextFeature. The GDAL is returning HTTP ERROR 400 and the
reason is that version and typenames are missing in the
request!</div>
<div><br>
</div>
<div>Am I missing something or is something wrong with the WFS
service (It is working well from inside QGIS) ?</div>
<div><br>
</div>
<div>Best regards</div>
<div>Jens Christiansen</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org" moz-do-not-send="true">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com" moz-do-not-send="true">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>