<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Maybe your feauture namespace is wrong, without the http?</div>
<div>url: '/geoserver/namespace/wfs',</div>
<div>layers : layername,</div>
<div> </div>
<div> (on localhost)</div>
<div> </div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 08. Juli 2013 um 17:31 Uhr<br/>
<b>Von:</b> "Pablo Pérez Diez" <pablo.fnk.foncas@gmail.com><br/>
<b>An:</b> users@geoext.org<br/>
<b>Betreff:</b> [Users] Changing feature attributes through WFS-T</div>
<div name="quoted-content">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi,<br/>
</div>
I've a map generated through OpenLayers. I'm using GeoExt to generate a tree of layers loaded from Geoserver that at the same time is loaded from a PostGIS database. I've developed that when the user click over the layer in the map a popup is displayed with the feature information, then I've added a button to the popup because of the user change some value of the feature to save it in the database.<br/>
<br/>
However, it isn't working:<br/>
</div>
To show the feature information in the popup I call to the function OpenLayers.Control.WMSGetFeatureInfo and It wait the event "getfeatureinfo". So, once the user click in the layer the popup is displayed with the save button. The user click in the button and the handler event is triggered with the next code:<br/>
<br/>
var capa = new OpenLayers.Protocol.WFS({<br/>
url: "/geoserver/ows",<br/>
version: "1.1.0",<br/>
featureType: "aicp",<br/>
featureNS: "<a href="http://OceanliderRestricciones" target="_blank">http://OceanliderRestricciones</a>",<br/>
srsName: "EPSG:4326"<br/>
});<br/>
<br/>
capa.commit(e.features);<br/>
</div>
"aicp" is the name of the layer I'm using to test it.</div>
"<a href="http://OceanliderRestricciones" target="_blank">http://OceanliderRestricciones</a>" is the URI of the workspace.</div>
"e" is the variable received as parameter when "getfeatureinfo" event is triggered.<br/>
</div>
A post request is send with the next content:<br/>
<div>
<div><span><<span>wfs:Transaction</span><span> <span>xmlns:wfs</span>="<span><a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a></span>"</span><span> <span>service</span>="<span>WFS</span>"</span><span> <span>version</span>="<span>1.1.0</span>"</span><span> <span>xsi:schemaLocation</span>="<span><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></span>"</span><span> <span>xmlns:xsi</span>="<span><a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a></span>"</span><span>></span></span></div>
<div></<span>wfs:Transaction</span>><br/>
</div>
<div>This is wrong because it hasn't what to do, I mean, It isn't saying what to do (update, insert, delete).<br/>
<br/>
I would appreciate your help.<br/>
</div>
<div>Thanks,<br/>
<br/>
FNK.<br/>
</div>
<div>PD: I've used this tutorial: <b><a href="http://workshops.opengeo.org/geoext/wfs/wfst.html" target="_blank">http://workshops.opengeo.org/geoext/wfs/wfst.html</a></b><br/>
It works but I don't know how to adapt it to my code.</div>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>