Hi,

i have a pblm when i want to insert a new feature. my request generated is 
(in firebug):

post

<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"/>

and a response:

<?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
 
fid="none"/>
</wfs:Feature></wfs:InsertResults></wfs:TransactionResponse>

i compared my request with that of example 
(http://openlayers.org/dev/examples/wfs-protocol-transactions.html) and 
the request generated in this case is:

<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 
http://opengeo.org 
http://demo.opengeo.org/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=og:restricted";
 

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><wfs:Update 
typeName="feature:restricted"
 
xmlns:feature="http://opengeo.org";><wfs:Property><wfs:Name>the_geom</wfs:Name><wfs:Value><gml:MultiSurface
 xmlns:gml="http://www.opengis.net/gml"; 
srsName="EPSG:4326"><gml:surfaceMember><gml:Polygon><gml:exterior><gml:LinearRing>
<gml:posList>-103.13690185636 44.54350530134 -103.19458007903 
44.561120482483 -103.34152221769 44.500423524143 -103.23028564543
 44.439663311553 -103.13690185636 
44.54350530134</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon>
</gml:surfaceMember></gml:MultiSurface></wfs:Value></wfs:Property><ogc:Filter 
xmlns:ogc="http://www.opengis.net/ogc";>
<ogc:FeatureId 
fid="restricted.680"/></ogc:Filter></wfs:Update></wfs:Transaction>

so, my request is very short and no description of my url and feature 
inserted are contained in the post query.

this is my script openlayers:

//PNT WFS-T
layer3 = new OpenLayers.Layer.Vector("PNT",
             {strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
             projection: new OpenLayers.Projection("EPSG:27563"),

                   protocol: new OpenLayers.Protocol.WFS({
                    version: "1.1.0",
                    srsName: "EPSG:27563",
                    url: "http://localhost:8080/geoserver/wfs";,
                    featureNS :  "http://www.openplans.org/tuto";,
                    featureType: "PNT",
                    geometryName:"GEOMETRY1",
                    schema: 
"http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=tuto:PNT";

                  })},
             {
                  extractAttributes:true,
                  displayInLayerSwitcher: true 
             });
 
var save = new OpenLayers.Control.Button({
                    title: "Save Changes",
                    trigger: function() {
                        if(edit.feature) {
                            edit.selectControl.unselectAll();
                        }
                        saveStrategy.save();
                    },
                    displayClass: "olControlSaveFeatures"
                });
any idea?

Best regards,

Avant d'imprimer ce mail, pensez a notre environnement.
Les informations figurant sur cet e-mail ont un caractere strictement 
confidentiel et sont exclusivement adressees au destinataire mentionne 
ci-dessus.Tout usage, reproduction ou divulgation de cet e-mail est strictement 
interdit si vous n'en etes pas le destinataire.Dans ce cas, veuillez nous en 
avertir immediatement par la meme voie et detruire l'original. Merci.

Before printing this email, think of our environment.
This e-mail is intended only for use of the individual or entity  to which it 
is addressed and may contain information that is privileged,confidential and 
exempt from disclosure under applicable law.Any use, distribution or copying of 
this e-mail communication is strictly prohibited .if you are not the addressee. 
If so, please notify us immediately by e-mail, and destroy the original. Thank 
you.


_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to