Hi Jimmy, Can you show us your code?
Personnally, I use WFS-T like that : var saveStrategy = new OpenLayers.Strategy.Save({ callback: function() { alert('feature saved'); } }); wfs2 = new OpenLayers.Layer.Vector( 'lumin', { strategies: [ new OpenLayers.Strategy.BBOX(), saveStrategy ], projection: new OpenLayers.Projection("EPSG:21781"), protocol: new OpenLayers.Protocol.WFS({ version: '1.1.0', srsName: 'EPSG:21781', url: 'http://localhost:8080/geoserver/wfs?strict=true', featureNS : 'http://www.openplans.org/topp', featureType: 'lumin', geometryName: 'the_geom', extractAttribute: true }), styleMap: styleMap }); Sincerly, Jérome Jimmy Aumard wrote: > > Hi list, > > I try to use WFS-T to add a new point on my layer, I use Openlayers, > geoserver 1.7.6 and Postgis. > > This is my request: > > <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" > version="1.1.0" xsi:schemaLocation > > ="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" > xmlns:xsi="http://www.w3.org > > /2001/XMLSchema-instance"><wfs:Insert><feature:franchises > xmlns:feature="http://www.openplans.org/topp" >><feature:the_geom><gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"><gml:pos>757185 > > .20208755 > 5403792.1508966</gml:pos></gml:Point></feature:the_geom></feature:franchises></wfs:Insert> > </wfs:Transaction> > > This is the response: > > <?xml version="1.0" encoding="UTF-8"?> > > <ows:ExceptionReport version="1.0.0" > xsi:schemaLocation="http://www.opengis.net/ows > http://192.168.40.136:8080/geoserver/schemas/ows/1.0 > > .0/owsExceptionReport.xsd" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:ows="http://www.opengis.net/ows"> > > <ows:Exception exceptionCode="NoApplicableCode"> > <ows:ExceptionText>{http://www.openplans.org/topp}franchises > <http://www.openplans.org/topp%7Dfranchises> is > read-only</ows:ExceptionText> > > </ows:Exception> > </ows:ExceptionReport> > > Thanks for help. > > Jim > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- View this message in context: http://n2.nabble.com/Problem-WFS-T-add-new-geometry-point-tp3508883p3509533.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users