Já funciona!<div><br></div><div>Basta olhar para o XML... na versão 1.1.0 falta o parâmetro "PropertyName" no filtro. Criei o WFS com a opção geometryName, assim:</div><div>OpenLayers.Protocol.WFS.fromWMSLayer(layer, {geometryName: "the_geom"})</div>
<div><br></div><div>e já não devolve excepção :)<br><div><br><div class="gmail_quote">No dia 12 de Junho de 2012 21:46, Marco Afonso <span dir="ltr"><<a href="mailto:mafonso333@gmail.com" target="_blank">mafonso333@gmail.com</a>></span> escreveu:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Boa noite,<div><br></div><div>Obrigado pela dica Duarte.</div><div><br></div><div>Em anexo o GetCapabilities do WFS. Os warnings emitidos não devem afetar o problema...</div>
<div><br></div><div><b>Este é o pedido WFS 1.0.0 do OpenLayers (funciona):</b></div>
<div><wfs:GetFeature xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>" service="WFS" version="1.0.0" xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd" target="_blank">http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"></div>

<div><wfs:Query typeName="feature:layer1"></div><div>    <ogc:Filter xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"></div><div>        <ogc:BBOX></div>

<div>            <ogc:PropertyName>the_geom</ogc:PropertyName></div><div>            <gml:Box xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>" srsName="EPSG:900913"></div>

<div>                <gml:coordinates decimal="." cs="," ts=" ">-908768.18639262,4528699.1266543 -884308.33734476,4553158.9757021</gml:coordinates></div><div>            </gml:Box></div>

<div>        </ogc:BBOX></div><div>    </ogc:Filter></div><div></wfs:Query></div><div></wfs:GetFeature></div><div><br></div><div><b>Este é o pedido WFS 1.1.0 (não funciona):</b></div><wfs:GetFeature xmlns:wfs="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>" service="WFS" version="1.1.0" xsi:schemaLocation="<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><div>

<wfs:Query typeName="feature:layer1" srsName="EPSG:900913"></div><div>    <ogc:Filter xmlns:ogc="<a href="http://www.opengis.net/ogc" target="_blank">http://www.opengis.net/ogc</a>"></div>
<div>        <ogc:BBOX></div>
<div>            <gml:Envelope xmlns:gml="<a href="http://www.opengis.net/gml" target="_blank">http://www.opengis.net/gml</a>" srsName="EPSG:900913"></div><div>                <gml:lowerCorner>-971140.80146464 4500570.3002492</gml:lowerCorner></div>

<div>                <gml:upperCorner>-946680.95241679 4525030.1492971</gml:upperCorner></div><div>            </gml:Envelope></div><div>        </ogc:BBOX></div><div>    </ogc:Filter></div>
<div>
</wfs:Query></div><div></wfs:GetFeature></div><div><br></div><div>Coloquei aqui na lista porque pensei que pudessem confirmar este problema...</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div>
<span class="HOEnZb"><font color="#888888">Marco</font></span><div><div class="h5"><br><div><br><div class="gmail_quote">
2012/6/12 duartecarreira <span dir="ltr"><<a href="mailto:dncarreira@gmail.com" target="_blank">dncarreira@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Podes obter o capsdoc e verificar se não há errors ou warnings emitidos pelo<br>
mapserver:<br>
<br>
<url>?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities<br>
<br>
boa sorte,<br>
duarte<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/MapServer-6-OpenLayers-2-11-WFS-error-tp4980386p4980700.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/MapServer-6-OpenLayers-2-11-WFS-error-tp4980386p4980700.html</a><br>


Sent from the OSGeo Portuguese Local Chapter mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Portugal mailing list<br>
<a href="mailto:Portugal@lists.osgeo.org" target="_blank">Portugal@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/portugal" target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a><br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>