WFS  does not commit/save  updates/changes made in my wfs but it can
successfully Add and Delete features thru WFS service of Geoserver to
POSTGIS database. 
cgi-bin/proxy.cgi has already been set.
I already tried updating the geoserver's sample shapefile layers and it is
successfully updated with this code.
I already used Udig and it manages to update the same wfs-t layers im
working with.

Im stuck at this one and been trying to make this work in days. :-((
Any help will be very much appreciated.

here is my js snippet:
###########################################################################

var ctrl = new OpenLayers.Control.PanZoom();
                var bounds = new OpenLayers.Bounds(
                    116.91, 4.499,
                    126.751, 21.165
                );
                var options = {
                    controls: [ctrl],
                    maxExtent: bounds,
                    maxResolution: 0.0651015625,
                    projection: "EPSG:4326",
                    units: 'degrees'
                };
                map = new OpenLayers.Map('map', options);

var saveStrategy = new OpenLayers.Strategy.Save();
        saveStrategy.events.register('success', null, saveSuccess);
        saveStrategy.events.register('fail', null, saveFail);

wfs = new OpenLayers.Layer.Vector("Index Map", {
        strategies: [new OpenLayers.Strategy.BBOX(),saveStrategy],
        projection: new OpenLayers.Projection("EPSG:4326"),
        protocol: new OpenLayers.Protocol.WFS({
            version: "1.0.0",
            srsName: "EPSG:4326",
            url: "/geoserver/wfs",
            featureNS :  "http://opengeo.org/cic";,
            featureType: "geo_pntms_wgs",
            schema:
"http://***.***.***.***:3000/geoserver/wfs?request=DescribeFeatureType&version=1.0.0&service=WFS&typeName=cic:geo_pntms_wgs";
            })
    });
    var gphy = new OpenLayers.Layer.Google(
        "Google Physical",
        {type: G_PHYSICAL_MAP, sphericalMercator: false}
    );

 map.addLayers([gphy,wfs]);

##############################################################################################
The XML Response of firebug after clicking save button is..

<wfs:wfs_transactionresponse version="1.0.0"
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/wfs
http://***.***.***.***:3000/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd";>
<wfs:insertresult>
       <ogc:featureid fid="none"></ogc:featureid>
</wfs:insertresult> 
<wfs:transactionresult> 
<wfs:status>
      <wfs:failed></wfs:failed>
 </wfs:status> 
      <wfs:message>update error</wfs:message> 
</wfs:transactionresult>
</wfs:wfs_transactionresponse>

####################################################################################
The Geoserver Log has the following lines..

02 Nov 16:00:05 ERROR [geoserver.wfs] - Transaction failed
org.geoserver.wfs.WFSTransactionException: update error

####################################################################################

Thanks,
ry:working:
-- 
View this message in context: 
http://old.nabble.com/WFS-T-Failed-to-Commit-Update-%28Edit-State%29-but-Adding-and-Delete-is-Successful-tp30111823p30111823.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to