Well, the log should be able to give you a clue as to what&#39;s going on.<br><br><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 9:41 PM, 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">
So, the problem must be openlayers. If you can add and remove features
with qgis. I don&#39;t know where to look for.<br>
<br>
<br>
El 31/10/11 12:01, Gissur Þórhallsson escribió:
<blockquote type="cite"><div class="im">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" target="_blank">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><div class="gmail_quote"><div class="im">On Mon, Oct 31, 2011 at 3:41 AM, Nicolas
Ardissono <span dir="ltr">&lt;<a href="mailto:nicolasardissono@yahoo.com.ar" target="_blank">nicolasardissono@yahoo.com.ar</a>&gt;</span>
wrote:<br>
  </div><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
    <div bgcolor="#ffffff" text="#000000"><div class="im">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></div><div><div></div><div class="h5">
&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></div></div><div><div></div><div class="h5">
         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></div></div><div><div></div><div class="h5">
    &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></div></div><div><div></div><div class="h5">
    <br>
_______________________________________________<br>
TinyOWS-users mailing list<br>
    <a href="mailto:TinyOWS-users@lists.maptools.org" target="_blank">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>
  </div></div></blockquote>
  </div><div><div></div><div class="h5">
  <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): <a href="tel:%28%2B354%29%20540%202500" value="+3545402500" target="_blank">(+354) 540 2500</a><br>
tölvupóstur (email): <a href="mailto:gissur@loftmyndir.is" target="_blank">gissur@loftmyndir.is</a><br>
  <pre><fieldset></fieldset>
_______________________________________________
TinyOWS-users mailing list
<a href="mailto:TinyOWS-users@lists.maptools.org" target="_blank">TinyOWS-users@lists.maptools.org</a>
<a href="http://lists.maptools.org/mailman/listinfo/tinyows-users" target="_blank">http://lists.maptools.org/mailman/listinfo/tinyows-users</a>
  </pre>
</div></div></blockquote>
<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>