Hello Nicolas,<br><br>What does the log on the server say? I&#39;ve also found it very helpful to also fiddle with the <b>log_level</b> parameters and see what pops out.<br>Refer to <a href="http://www.tinyows.org/trac/wiki/ConfigFile">http://www.tinyows.org/trac/wiki/ConfigFile</a> for how to configure logging.<br>

<br>I can on the other hand verify that your WFS is working fine - since I could connect to it from qgis and add/remove an island to the Faroe Islands.<br><br>Kind regards,<br>Gissur<br><br><div class="gmail_quote">On Mon, Oct 31, 2011 at 3:41 AM, Nicolas Ardissono <span dir="ltr">&lt;<a href="mailto:nicolasardissono@yahoo.com.ar">nicolasardissono@yahoo.com.ar</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>





<div bgcolor="#ffffff" text="#000000">
Hello, i&#39;m a newy in this matter, and after a week i have installed the
tinyows demo in my server (debian squeeze) and i could make it work,
all layers are showing, but i cannot make it save. <br>
<br>
Any tip or help will be apreciate. I don&#39;t know what else try, i have
no more ideas.<br>
<br>
When i edit same features and click save this is what <b>firebug post</b>:<br>
<br>
&lt;wfs:Transaction xmlns:wfs=<a href="http://www.opengis.net/wfs" target="_blank">&quot;http://www.opengis.net/wfs&quot;</a>
service=&quot;WFS&quot; version=&quot;1.1.0&quot;
xsi:schemaLocation=<a href="http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.1.0/wfs.xsdhttp://www.agpstracking.com/http://www.agpstracking.com/cgi-bin/tinyows?service=wfs&amp;request=DescribeFeatureType&amp;version=1.1.0&amp;typename=france" target="_blank">&quot;http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd
http://www.agpstracking.com/
http://www.agpstracking.com/cgi-bin/tinyows?service=wfs&amp;request=DescribeFeatureType&amp;version=1.1.0&amp;typename=france&quot;</a>
xmlns:xsi=<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</a>&gt;<br>
&lt;wfs:Update typeName=&quot;feature:france&quot;
xmlns:feature=<a href="http://www.agpstracking.com/" target="_blank">&quot;http://www.agpstracking.com/&quot;</a>&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;the_geom&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;<br>
&lt;gml:MultiSurface xmlns:gml=<a href="http://www.opengis.net/gml" target="_blank">&quot;http://www.opengis.net/gml&quot;</a>
srsName=&quot;EPSG:27582&quot;&gt;<br>
&lt;gml:surfaceMember&gt;<br>
&lt;gml:Polygon&gt;<br>
&lt;gml:exterior&gt;<br>
&lt;gml:LinearRing&gt;<br>
&lt;gml:posList&gt;650260.......&lt;/gml:posList&gt;<br>
&lt;/gml:LinearRing&gt;<br>
&lt;/gml:exterior&gt;<br>
&lt;/gml:Polygon&gt;<br>
&lt;/gml:surfaceMember&gt;<br>
&lt;/gml:MultiSurface&gt;<br>
&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;gid&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;90&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;id_geofla&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;32129&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;code_chf_l&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;024&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;nom_chf_l&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;AUXERRE&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;x_chf_lieu&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;6921&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;y_chf_lieu&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;23116&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;x_centroid&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;6932&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;y_centroid&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;23112&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;nom_dept&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;YONNE&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;code_reg&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;26&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;nom_region&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;BOURGOGNE&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;wfs:Property&gt;<br>
&lt;wfs:Name&gt;code_dept&lt;/wfs:Name&gt;<br>
&lt;wfs:Value&gt;89&lt;/wfs:Value&gt;<br>
&lt;/wfs:Property&gt;<br>
&lt;ogc:Filter xmlns:ogc=<a href="http://www.opengis.net/ogc" target="_blank">&quot;http://www.opengis.net/ogc&quot;</a>&gt;<br>
&lt;ogc:FeatureId&gt;&lt;/ogc:FeatureId&gt;<br>
&lt;/ogc:Filter&gt;<br>
&lt;/wfs:Update&gt;<br>
&lt;/wfs:Transaction&gt;<br>
<br>
<br>
<b>this is the tinyows response in firebug:</b><br>
<pre><code>&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;
</code><code>&lt;ows:ExceptionReport
</code><code> xmlns=&#39;<a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a>&#39;
</code><code> xmlns:ows=&#39;<a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a>&#39;
</code><code> xmlns:xsi=&#39;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#39;
</code><code> xsi:schemaLocation=&#39;<a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a> <a href="http://schemas.opengis.net/ows/1.0.0/owsExceptionReport" target="_blank">http://schemas.opengis.net/ows/1.0.0/owsExceptionReport</a></code><code>.xsd&#39;
</code><code> version=&#39;1.1.0&#39; language=&#39;en&#39;&gt;
</code><code> &lt;ows:Exception exceptionCode=&#39;InvalidParameterValue&#39; locator=&#39;request&#39;&gt;
</code><code>  &lt;ows:ExceptionText&gt;XML request isn&#39;t valid&lt;/ows:ExceptionText&gt;
</code><code> &lt;/ows:Exception&gt;
</code><code>&lt;/ows:ExceptionReport&gt;</code></pre>
<br>
<br>
This is what i have   in: <br>
    <b>/etc/tinyows.xml:</b><br>
    &lt;tinyows
online_resource=<a href="http://www.agpstracking.com/cgi-bin/tinyows" target="_blank">&quot;http://www.agpstracking.com/cgi-bin/tinyows&quot;</a><br>
         schema_dir=&quot;/usr/local/share/tinyows/schema/&quot; log_level=&quot;1&quot;
log=&quot;/var/log/tinyows.log&quot;&gt;<br>
<br>
  &lt;pg host=&quot;127.0.0.1&quot; user=&quot;remise&quot; password=&quot;12346&quot;
dbname=&quot;tinyows_demo&quot; port=&quot;5433&quot;/&gt;<br>
<br>
  &lt;metadata name=&quot;TinyOWS Server&quot;<br>
            title=&quot;TinyOWS Server - Demo Service&quot; /&gt;<br>
<br>
  &lt;layer retrievable=&quot;1&quot;<br>
         writable=&quot;1&quot;<br>
         ns_prefix=&quot;tows&quot;<br>
         ns_uri=<a href="http://www.agpstracking.com/" target="_blank">&quot;http://www.agpstracking.com/&quot;</a><br>
         name=&quot;world&quot;<br>
         server=<a href="http://www.agpstracking.com/" target="_blank">&quot;http://www.agpstracking.com/&quot;</a><br>
         title=&quot;World Administrative Boundaries&quot; /&gt;<br>
<br>
  &lt;layer retrievable=&quot;1&quot;<br>
         writable=&quot;1&quot;<br>
         ns_prefix=&quot;tows&quot;<br>
         ns_uri=<a href="http://www.agpstracking.com/" target="_blank">&quot;http://www.agpstracking.com/&quot;</a><br>
         name=&quot;france&quot;<br>
         server=<a href="http://www.agpstracking.com/" target="_blank">&quot;http://www.agpstracking.com/&quot;</a><br>
         title=&quot;French Administrative Sub Boundaries (IGN - GeoFLA
Departements)&quot; /&gt;<br>
<br>
    &lt;/tinyows&gt;<br>
<br>
<br>
<b>this is the javascript file:</b><br>
<br>
var map, wfs;<br>
<br>
var DeleteFeature = OpenLayers.Class(OpenLayers.Control, {<br>
    initialize: function(layer, options) {<br>
        OpenLayers.Control.prototype.initialize.apply(this, [options]);<br>
        this.layer = layer;<br>
        this.handler = new OpenLayers.Handler.Feature(<br>
            this, layer, {click: this.clickFeature}<br>
        );<br>
    },<br>
    clickFeature: function(feature) {<br>
        // if feature doesn&#39;t have a fid, destroy it<br>
        if(feature.fid == undefined) {<br>
            this.layer.destroyFeatures([feature]);<br>
        } else {<br>
            feature.state = OpenLayers.State.DELETE;<br>
            this.layer.events.triggerEvent(&quot;afterfeaturemodified&quot;, <br>
                                           {feature: feature});<br>
            feature.renderIntent = &quot;select&quot;;<br>
            this.layer.drawFeature(feature);<br>
        }<br>
    },<br>
    setMap: function(map) {<br>
        this.handler.setMap(map);<br>
        OpenLayers.Control.prototype.setMap.apply(this, arguments);<br>
    },<br>
    CLASS_NAME: &quot;OpenLayers.Control.DeleteFeature&quot;<br>
});<br>
<br>
<br>
<br>
function showMsg(szMessage) {<br>
    window.alert(szMessage);<br>
    /*document.getElementById(&quot;message&quot;).innerHTML = szMessage;<br>
    setTimeout(<br>
        &quot;document.getElementById(&#39;message&#39;).innerHTML = &#39;&#39;&quot;,2000);*/<br>
};<br>
<br>
function showSuccessMsg(){<br>
    showMsg(&quot;Transaction successfully completed&quot;);<br>
};<br>
<br>
function showFailureMsg(){<br>
    showMsg(&quot;An error occured while operating the transaction&quot;);<br>
};<br>
<br>
<br>
function init() {<br>
     map = new OpenLayers.Map(&#39;basicMap&#39;, {<br>
        projection: new OpenLayers.Projection(&quot;EPSG:27582&quot;),<br>
        units: &quot;m&quot;,<br>
        maxResolution: &quot;auto&quot;,<br>
        maxExtent: new OpenLayers.Bounds(5000,1620000,1198000,2678000),<br>
        controls: [<br>
            new OpenLayers.Control.PanZoom()<br>
        ]<br>
        });<br>
    var base = new OpenLayers.Layer.WMS(&quot;OpenLayers WMS&quot;,<br>
        <a href="http://www.geosignal.org/cgi-bin/wmsmap?" target="_blank">&quot;http://www.geosignal.org/cgi-bin/wmsmap?&quot;</a>,<br>
        {layers: &quot;Regions,Departements&quot;,<br>
     projection:&quot;EPSG:27582&quot;,<br>
    displayProjection: new OpenLayers.Projection(&quot;EPSG:27582&quot;),<br>
         units: &quot;m&quot;,<br>
     maxResolution: &quot;auto&quot;,<br>
     maxExtent: new OpenLayers.Bounds(5000,1620000,1198000,2678000),<br>
     sld:
<a href="http://www.tinyows.org/tracdocs/demo/OpenLayers-2.9/examples/sld.xml" target="_blank">&quot;http://www.tinyows.org/tracdocs/demo/OpenLayers-2.9/examples/sld.xml&quot;</a><br>
    }<br>
    );<br>
<br>
    map.addLayer(base);<br>
<br>
    var saveStrategy = new OpenLayers.Strategy.Save();<br>
    saveStrategy.events.register(&quot;success&quot;, &#39;&#39;, showSuccessMsg);<br>
    saveStrategy.events.register(&quot;fail&quot;, &#39;&#39;, showFailureMsg);<br>
<br>
   wfs = new OpenLayers.Layer.Vector(&quot;Editable Features&quot;, {<br>
        strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],<br>
        projection: new OpenLayers.Projection(&quot;EPSG:27582&quot;),<br>
        protocol: new OpenLayers.Protocol.WFS({<br>
            version: &quot;1.1.0&quot;,<br>
            srsName: &quot;EPSG:27582&quot;,<br>
            url: <a href="http://www.agpstracking.com/cgi-bin/tinyows?" target="_blank">&quot;http://www.agpstracking.com/cgi-bin/tinyows?&quot;</a>,<br>
            featureType: &quot;france&quot;,<br>
            featureNS: <a href="http://www.agpstracking.com/" target="_blank">&quot;http://www.agpstracking.com/&quot;</a>,<br>
            geometryName: &quot;the_geom&quot;,<br>
            schema:
<a href="http://www.agpstracking.com/cgi-bin/tinyows?service=wfs&amp;request=DescribeFeatureType&amp;version=1.1.0&amp;typename=france" target="_blank">&quot;http://www.agpstracking.com/cgi-bin/tinyows?service=wfs&amp;request=DescribeFeatureType&amp;version=1.1.0&amp;typename=france&quot;</a>,<br>


            outputFormat: &quot;application/json&quot;,<br>
            readFormat: new OpenLayers.Format.GeoJSON()<br>
        })<br>
    });<br>
<br>
   map.addLayer(wfs);<br>
<br>
    var panel = new OpenLayers.Control.Panel(<br>
        {&#39;displayClass&#39;: &#39;customEditingToolbar&#39;}<br>
    );<br>
    <br>
    var navigate = new OpenLayers.Control.Navigation({<br>
        title: &quot;Pan Map&quot;<br>
    });<br>
    <br>
    var draw = new OpenLayers.Control.DrawFeature(<br>
        wfs, OpenLayers.Handler.Polygon,<br>
        {<br>
            title: &quot;Draw Feature&quot;,<br>
            displayClass: &quot;olControlDrawFeaturePolygon&quot;,<br>
            multi: true<br>
        }<br>
    );<br>
    <br>
    var edit = new OpenLayers.Control.ModifyFeature(wfs, {<br>
        title: &quot;Modify Feature&quot;,<br>
        displayClass: &quot;olControlModifyFeature&quot;<br>
    });<br>
<br>
    var del = new DeleteFeature(wfs, {title: &quot;Delete Feature&quot;});<br>
   <br>
    var save = new OpenLayers.Control.Button({<br>
        title: &quot;Save Changes&quot;,<br>
        trigger: function() {<br>
            if(edit.feature) {<br>
                edit.selectControl.unselectAll();<br>
            }<br>
            saveStrategy.save();<br>
        },<br>
        displayClass: &quot;olControlSaveFeatures&quot;<br>
    });<br>
<br>
    panel.addControls([navigate, save, edit, draw, del]);<br>
    panel.defaultControl = navigate;<br>
    map.addControl(panel);<br>
    map.zoomToMaxExtent();<br>
<br>
}<br>
<br>
<br>
<b>this is my html file:</b><br>
<br>
&lt;html&gt;<br>
  &lt;head&gt;<br>
&lt;LINK REL=StyleSheet HREF=&#39;../estilo.css&#39; TYPE=&#39;text/css&#39;&gt;<br>
&lt;link rel=&quot;stylesheet&quot; href=&quot;theme/default/style.css&quot;
type=&quot;text/css&quot; /&gt;<br>
    &lt;script src=&quot;OpenLayers-2.9/OpenLayers.js&quot;&gt;&lt;/script&gt;<br>
    &lt;style&gt;<br>
<br>
    #map {<br>
            width: 800px;<br>
           height: 500px;<br>
            float: left;<br>
            border: 1px solid #ccc;<br>
    }<br>
        #message {<br>
        position: relative;<br>
            left: 5px;<br>
    }<br>
        #docs {<br>
            float: left;<br>
    }<br>
        .customEditingToolbar {<br>
            float: right;<br>
            right: 0px;<br>
            height: 30px; <br>
            width: 200px;<br>
        }<br>
        .customEditingToolbar div {<br>
            float: right;<br>
            margin: 5px;<br>
            width: 24px;<br>
            height: 24px;<br>
        }<br>
        .olControlNavigationItemActive { <br>
            background-image:
url(&quot;theme/default/img/editing_tool_bar.png&quot;);<br>
            background-repeat: no-repeat;<br>
            background-position: -103px -23px; <br>
        }<br>
        .olControlNavigationItemInactive { <br>
            background-image:
url(&quot;theme/default/img/editing_tool_bar.png&quot;);<br>
            background-repeat: no-repeat;<br>
            background-position: -103px -0px; <br>
        }<br>
        .olControlDrawFeaturePolygonItemInactive { <br>
            background-image:
url(&quot;theme/default/img/editing_tool_bar.png&quot;);<br>
            background-repeat: no-repeat;<br>
            background-position: -26px 0px; <br>
        }<br>
        .olControlDrawFeaturePolygonItemActive { <br>
            background-image:
url(&quot;theme/default/img/editing_tool_bar.png&quot;);<br>
            background-repeat: no-repeat;<br>
            background-position: -26px -23px
;                                                                   <br>
        }<br>
        .olControlModifyFeatureItemActive { <br>
            background-image:
url(theme/default/img/move_feature_on.png);<br>
            background-repeat: no-repeat;<br>
            background-position: 0px 1px;<br>
        }<br>
        .olControlModifyFeatureItemInactive { <br>
            background-image:
url(theme/default/img/move_feature_off.png);<br>
            background-repeat: no-repeat;<br>
            background-position: 0px 1px;<br>
        }<br>
        .olControlDeleteFeatureItemActive { <br>
            background-image:
url(theme/default/img/remove_point_on.png);<br>
            background-repeat: no-repeat;<br>
            background-position: 0px 1px;<br>
        }<br>
        .olControlDeleteFeatureItemInactive { <br>
            background-image:
url(theme/default/img/remove_point_off.png);<br>
            background-repeat: no-repeat;<br>
            background-position: 0px 1px;<br>
        }<br>
    &lt;/style&gt;<br>
    &lt;script src=&quot;tinyows_wfs-t.js&quot;&gt;&lt;/script&gt;<br>
    &lt;/head&gt;<br>
<br>
    &lt;body onload=&quot;init()&quot;&gt;<br>
        &lt;h1 id=&quot;title&quot;&gt;WFS Transaction Example, (TinyOWS ans
OpenLayers)&lt;/h1&gt;<br>
        &lt;div id=&quot;tags&quot;&gt;&lt;/div&gt;<br>
        &lt;p id=&quot;shortdesc&quot;&gt;<br>
            Shows the use of the WFS Transactions (WFS-T).<br>
        Parks of Osnabruck (Frida).<br>
    &lt;br /&gt;<br>
        Base layers is OpenStreetMap from Omniscale WMS Server.<br>
        &lt;/p&gt;<br>
        &lt;div id=&quot;basicMap&quot;&gt;&lt;/div&gt;<br>
<br>
    &lt;div id=&quot;message&quot;&gt;&lt;/div&gt;<br>
        &lt;div id=&quot;docs&quot;&gt;<br>
            &lt;p&gt;<br>
                The WFS protocol allows for creation of new features and<br>
                reading, updating, or deleting of existing features.<br>
            &lt;/p&gt;<br>
            &lt;p&gt;<br>
                Use the tools to create, modify, and delete (in order
from left<br>
                to right) features. Use the save tool (picture of a
disk) to<br>
                save your changes. Use the navigation tool (hand) to
stop<br>
                editing and use the mouse for map navigation.<br>
            &lt;/p&gt;<br>
            &lt;p&gt;<br>
                See the &lt;a href=&quot;tinyows_wfs-t.js&quot;
target=&quot;_blank&quot;&gt;<br>
<br>
                wfs-protocol-transactions.js source&lt;/a&gt; to see
how this is done.<br>
            &lt;/p&gt;        <br>
        &lt;/div&gt;<br>
    &lt;/body&gt;<br>
&lt;/html&gt;<br>
<br>
THANKS<br>
</div>

<br>_______________________________________________<br>
TinyOWS-users mailing list<br>
<a href="mailto:TinyOWS-users@lists.maptools.org">TinyOWS-users@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/tinyows-users" target="_blank">http://lists.maptools.org/mailman/listinfo/tinyows-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Gissur Þórhallsson<br><br>Loftmyndir ehf.<br>Laugavegur 13<br>IS 101 Reykjavík - Iceland<br>sími (tel): (+354) 540 2500<br>tölvupóstur (email): <a href="mailto:gissur@loftmyndir.is">gissur@loftmyndir.is</a><br>