<span style=""><span style="background-color: rgb(255, 255, 0);"></span></span>Thanks Oliver,<br>I update to 440 trunk version<br>(I use ubuntu 10.10 version)<br><br>Now it seems that the validation problem is fixed in retrieving layer but it still remains when i try to update geometry.<br>
<br>I have this in firebug (by the way now no report in log file for this error, just in firebug)<br><br><br>Object { layer={...}, data={...}, more...}<br>fine modifica item: OpenLayers.Feature.Vector_149<br>POST <a href="http://gorla.local/cgi-bin/proxy.cgi?url=http%3A%2F%2Fgorla.local%2Fcgi-bin%2Ftinyows_gorla_cdu">http://gorla.local/cgi-bin/proxy.cgi?url=http%3A%2F%2Fgorla.local%2Fcgi-bin%2Ftinyows_gorla_cdu</a><br>
POST <a href="http://gorla.local/cgi-bin/proxy.cgi?url=http%3A%2F%2Fgorla.local%2Fcgi-bin%2Ftinyows_gorla_cdu">http://gorla.local/cgi-bin/proxy.cgi?url=http%3A%2F%2Fgorla.local%2Fcgi-bin%2Ftinyows_gorla_cdu</a><br>        <br>200 OK<br>
                66ms        <br>OpenLa...10.js?V (riga 1188)<br>ParametriIntestazioniPostPutRispostaCacheHTMLXML<br><br><?xml version='1.0' encoding='UTF-8'?><br><ExceptionReport<br> xmlns='<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a>'<br>
xmlns:xsi='<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>'<br> xsi:schemaLocation='<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a> <a href="http://schemas.opengis.net/ows/">http://schemas.opengis.net/ows/</a><span style="background-color: rgb(255, 255, 0);">1.0.0</span>/owsExceptionReport.xsd'<br>
version='1.0.0' language='en'><br> <Exception exceptionCode='InvalidParameterValue' locator='Update'><br> <ExceptionText>Typename provided is unknown or not writable</ExceptionText><br>
</Exception><br></ExceptionReport><br><br>it seems that use protocol 1.0.0 but in openlayers file I usr 1.1.0<br> vParticelle= new OpenLayers.Layer.Vector("Edit", {<br> styleMap: oStyleMap,<br>
strategies: [new OpenLayers.Strategy.BBOX(), oSaveStrategy],<br> filter: new OpenLayers.Filter.Comparison({type: OpenLayers.Filter.Comparison.EQUAL_TO,property:'selected',value:1}),<br>
projection: new OpenLayers.Projection("EPSG:3003"),<br> extractAttributes: false, //default false, if true attributes are available in the attributes<br> protocol: new OpenLayers.Protocol.WFS({<br>
version: "1.1.0",<br> url: 'http://'+HOST+'/cgi-bin/tinyows_gorla_cdu',<br> featureType: "sitparticellecdu", // la tabella postgis lo srid deve corrispondere e deve avere la chiave primaria<br>
featureNS: "<a href="http://127.0.0.1">http://127.0.0.1</a>",<br> srsName: "EPSG:3003", // non lasciare spazi dopo i ":"<br> geometryName: "the_geom",<br>
schema: 'http://'+HOST+'/cgi-bin/tinyows_gorla_cdu?service=WFS&request=DescribeFeatureType&version=1.1.0&TypeName=sitparticellecdu'<br> })<br> });<br><br><br>function saveFeature() {<br>
var oFeature = getSelectedFeat();<br> if (oFeature && (oFeature.state != OpenLayers.State.INSERT)) { oFeature.state = OpenLayers.State.UPDATE; }<br> if (oFeature) { <br> switch(oFeature.layer.protocol.CLASS_NAME) {<br>
case "OpenLayers.Protocol.HTTP":<br> oFeature.layer.protocol.commit([oFeature], {<br> "update": { callback: onUpdate(response) },<br> "create": { callback: onCreate(response) },<br>
"delete": { callback: onDelete(response) }<br> });<br> break;<br> case "OpenLayers.Protocol.WFS.v1_1_0":<br> console.log(oFeature);<br>
oSaveStrategy.save([oFeature]);<br> break;<br> default:<br> }<br> oModifyPolCtrl.selectControl.unselect(oFeature);<br> }<br>}<br><br>tinyows_gorla_cdu is just this bash script<br>
#!/bin/sh<br>TINYOWS_CONFIG_FILE=/home/www/dati/gorla/mapfiles/tinyows_config_cdu.xml<br>export TINYOWS_CONFIG_FILE<br>/usr/lib/cgi-bin/tinyows<br><br>and call the same .xml file is it still correct in new version?<br><br>
<br>thnks again <br><br>luca<br><br>luca marletta<br><a href="http://www.beopen.it">www.beopen.it</a><br><br><br><br>On Sat, Apr 16, 2011 at 2:28 PM, Olivier Courtin <<a href="mailto:olivier.courtin@gmail.com">olivier.courtin@gmail.com</a>> wrote:<br>
><br>> On Apr 16, 2011, at 1:14 PM, Olivier Courtin wrote:<br>><br>>> There's few things if found a bit strange:<br>>> - You're config show check_shema to 0, so you should skip the schema<br>>> validation step<br>
><br>> After a look at the relevant code, check_schema was only focused on<br>> WFS request, but not the FE part.<br>> It's now fixed as r432.<br>><br>><br>> But it doesn't explain why your FE schema was'nt found.<br>
><br>> --<br>> Olivier<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">http://lists.maptools.org/mailman/listinfo/tinyows-users</a><br>><br><br>