<div dir="ltr">Wauw you are good :-)<div><br></div><div>Everything is working perfectly now so thank you so much for all your help Even.</div><div><br></div><div>Best regards</div><div>Jens Christiansen</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den lør. 19. jun. 2021 kl. 01.39 skrev Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <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 href="https://services.datafordeler.dk/GeoDanmarkVektor/GeoDanmark60_HIST_GML3/1.0.0/WFS?servicename=wfs&REQUEST=DescribeFeatureType&SERVICE=WFS&username=" target="_blank">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%<a href="http://2Fdata.gov.dk" target="_blank">2Fdata.gov.dk</a>%2Fschemas%2Fgeodanmark60%2F2%2Fgml3)<br>
    </p>
    <div>Le 19/06/2021 à 00:51, Even Rouault a
      écrit :<br>
    </div>
    <blockquote type="cite">
      
      <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>Le 19/06/2021 à 00:43, Jens Søe
        Christiansen a écrit :<br>
      </div>
      <blockquote type="cite">
        <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></fieldset>
        <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
      </blockquote>
      <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </div>

</blockquote></div>