Hi Andrés,<br><br>I didn&#39;t test it, I&#39;m talking from memory... Assumming the namespaces are ok, have you tried specifying the feature prefix? Something like this:<br><br><ol><li class="li2"><div class="de2"><span class="kw2">var</span> wfslayer <span class="sy0">=</span> <span class="kw2">new</span> OpenLayers.<span class="me1">Layer</span>.<span class="me1">Vector</span><span class="br0">(</span></div>
</li><li class="li1"><div class="de1">        <span class="st0">&quot;Concellos Galicia (WFS)&quot;</span><span class="sy0">,</span></div></li><li class="li2"><div class="de2">        <span class="br0">{</span>strategies<span class="sy0">:</span> <span class="br0">[</span><span class="kw2">new</span> OpenLayers.<span class="me1">Strategy</span>.<span class="me1">BBOX</span><span class="br0">(</span><span class="br0">)</span><span class="br0">]</span><span class="sy0">,</span></div>
</li><li class="li1"><div class="de1">         protocol<span class="sy0">:</span> <span class="kw2">new</span> OpenLayers.<span class="me1">Protocol</span>.<span class="me1">WFS</span><span class="br0">(</span><span class="br0">{</span></div>
</li><li class="li2"><div class="de2">             url<span class="sy0">:</span>  <span class="st0">&quot;<a href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</a>&quot;</span><span class="sy0">,</span></div>
</li><li class="li1"><div class="de1">             featureType<span class="sy0">:</span> <span class="st0">&quot;CONCELLO_25&quot;</span><span class="sy0">,</span></div></li><li class="li1"><span class="sy0">             featurePrefix: &quot;Galicia&quot;<br>
</span></li><li class="li2"><div class="de2">             featureNS<span class="sy0">:</span> <span class="st0">&quot;<a href="http://www.openplans.org/topp">http://www.openplans.org/topp</a>&quot;</span></div></li><li class="li1">
<div class="de1">         <span class="br0">}</span><span class="br0">)</span></div></li><li class="li2"><div class="de2">        <span class="br0">}</span></div></li><li class="li1"><div class="de1">    <span class="br0">)</span><span class="sy0">;</span></div>
</li></ol><br clear="all">Best regards, <br><br>Xurxo Méndez Pérez<br><br><a href="http://www.sonxurxo.com/" target="_blank">http://www.sonxurxo.com</a><br>
<br><br><div class="gmail_quote">2011/2/7 Andrés Maneiro <span dir="ltr">&lt;<a href="mailto:amaneiro@icarto.es">amaneiro@icarto.es</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br>
<br>
I&#39;m trying to connect to a WFS server by means of OpenLayers capabilities.<br>
<br>
If it can help, I&#39;m using geoserver 2.1 from the trunk (the one package by the opengeo-suite [1]). These tests on the WFS server are OK:<br>
<br>
- connect to WFS server by using a desktop client (QGIS) and get a layer<br>
- get a GML file directly from the browser with this query<br>
<a href="http://localhost:8080/geoserver/wfs?request=getfeature&amp;typename=Galicia:CONCELLO_25" target="_blank">http://localhost:8080/geoserver/wfs?request=getfeature&amp;typename=Galicia:CONCELLO_25</a><br>
<br>
So, it seems the WFS is ok and running. Nevertheless, when I trying to connect from OL I failed to use it. The map generated shows the OSM baselayer + WMS layer overlay. But not the WFS layer. The code I&#39;m using:<br>

<br>
  HTML code: <a href="http://pastebin.com/S0E1Wu8C" target="_blank">http://pastebin.com/S0E1Wu8C</a><br>
  Javascript code: <a href="http://pastebin.com/nzum0CbJ" target="_blank">http://pastebin.com/nzum0CbJ</a><br>
<br>
I can&#39;t figure out why it fails. Any idea?<br>
<br>
best,<br>
amaneiro<br>
<br>
[1] <a href="http://opengeo.org/technology/suite/whatsnew/" target="_blank">http://opengeo.org/technology/suite/whatsnew/</a><br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@lists.osgeo.org" target="_blank">Dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a><br>
</blockquote></div><br>