YOUNESS ELMEDRAOUI wrote: > how can i use save from stategy to save geometry and attribute. when i > create a new feature ans clic to save button, no feature are stored in > database ans the response of the request is: > > <?xml version="1.0" encoding="UTF-8"?> > <wfs:TransactionResponse version="1.1.0" > xsi:schemaLocation="http://www.opengis.net/wfs > http://localhost:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:tiger="http://www.census.gov" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:tuto="http://www.openplans.org/tuto" > xmlns:topp="http://www.openplans.org/topp" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:sf="http://www.openplans.org/spearfish" > xmlns:ows="http://www.opengis.net/ows" > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink"><wfs:TransactionSummary><wfs:totalInserted>0</wfs:totalInserted><wfs:totalUpdated>0</wfs:totalUpdated><wfs:totalDeleted>0</wfs:totalDeleted></wfs:TransactionSummary><wfs:TransactionResults/><wfs:InsertResults><wfs:Feature><ogc:FeatureId > <http://www.w3.org/1999/xlink%22%3E%3Cwfs:TransactionSummary%3E%3Cwfs:totalInserted%3E0%3C/wfs:totalInserted%3E%3Cwfs:totalUpdated%3E0%3C/wfs:totalUpdated%3E%3Cwfs:totalDeleted%3E0%3C/wfs:totalDeleted%3E%3C/wfs:TransactionSummary%3E%3Cwfs:TransactionResults/%3E%3Cwfs:InsertResults%3E%3Cwfs:Feature%3E%3Cogc:FeatureId> > fid="none"/></wfs:Feature></wfs:InsertResults></wfs:TransactionResponse> > i think because he need a fid to store a feature but i'm not sure. > can any one help me plz???
Please also post the request, not just the response. If you made your attempts based on the http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html example, you should be fine on the client side. You need to make sure that you configure things like featureNS, featureType and schema correctly. Try to make transactions work with your WFS by just modifying the mentioned example. If you need further help, post the code of your modified example. Regards, Andreas. Regards, Andreas. > --------------- > Best regards, > Youness > Les informations figurant sur cet e-mail ont un caractère strictement > confidentiel et sont exclusivement adressées au destinataire mentionné > ci-dessus.Tout usage, reproduction ou divulgation de cet e-mail est > strictement interdit si vous n'en êtes pas le destinataire.Dans ce > cas, veuillez nous en avertir immédiatement par la même voie et > détruire l'original. Merci > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
