The WFS service loads but shows nothing

I am using the following code in Delphi:
ds := TOgrDatasource.Create(Nil);
gs := CoGlobalSettings.Create;
gs.ReprojectLayersOnAdding:= True;

//if not ds.Open(‘WFS:http://webgis.regione.sardegna.it/geoserver/ows’) then
if not ds.Open(‘WFS:http://192.168.1.41:8080/geoserver/GIS/ows’) then
begin
ShowMessage('Failed to establish connection; '+ ds.GdalLastErrorMsg);
end
else
begin
Map1.LockWindow(lmLock);
count := ds.LayerCount;
lyr := ds.GetLayer(0,False);
HandleLayer := map1.AddLayer(lyr,True);
ListBox1.Items.Add(lyr.Name);
Map1.ZoomToLayer(HandleLayer);
Map1.Redraw;
Map1.LockWindow(lmUnlock);
Map1.SetFocus;
ds.Close();
ds.Free;
end;

…The WFS service loads but shows nothing

I don’t have a lot of experience with WFS but when I use ogrinfo I get this error:


Do you have the same error when you use your local server?

I believe putting http://webgis.regione.sardegna.it/geoserver/ows?request=GetCapabilities&service=wfs in a browser is showing the layers.
But ogrinfo -ro -al "http://webgis.regione.sardegna.it/geoserver/ows" ppr06:AMBITIPAESAGGIO doesn’t work: FAILURE: Couldn't fetch requested layer ppr06:AMBITIPAESAGGIO!

For WFS MapWinGIS is redirecting to GDAL/OGR. If they can’t fetch it, MapWinGIS can’t either.

I could fix the problem with the following connection string:

http://192.168.1.41:8080/geoserver/GIS/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=GIS%3Aapoyo&bbox=-73.130,7,-73.110,8&outputFormat=application%2Fjson

It use ogrlayer like a GeoJson.