Modification of many records
Send POST on
URI:
?SERVICE=WFS&VERSION=1.0.0&SRSNAME=EPSG:3003&
Example - add 3 records to table TEST_GEOM_LINESTRING:
<Transaction xmlns="http://www.opengis.net/wfs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0.0"
service="WFS"
xmlns:p5_default_db="https://biuro.biall-net.pl/wfs/default_db"
xmlns:gml="http://www.opengis.net/gml">
<Insert xmlns="http://www.opengis.net/wfs">
<TEST_GEOM_LINESTRING xmlns="https://biuro.biall-net.pl/wfs/default_db">
<OPIS xmlns="https://biuro.biall-net.pl/wfs/default_db">test1z3</OPIS>
<the_geom xmlns="https://biuro.biall-net.pl/wfs/default_db">
<gml:LineString srsName="EPSG:4326">
<gml:coordinates cs="," ts=" ">18.25240580856418049,54.48879768607960017 18.27014261382555915,54.46219247818753217</gml:coordinates>
</gml:LineString>
</the_geom>
</TEST_GEOM_LINESTRING>
</Insert>
<Insert xmlns="http://www.opengis.net/wfs">
<TEST_GEOM_LINESTRING xmlns="https://biuro.biall-net.pl/wfs/default_db">
<OPIS xmlns="https://biuro.biall-net.pl/wfs/default_db">test2z3</OPIS>
<the_geom xmlns="https://biuro.biall-net.pl/wfs/default_db">
<gml:LineString srsName="EPSG:4326">
<gml:coordinates cs="," ts=" ">18.2629370366881254,54.43447871996662712 18.28621659359368223,54.40621068658131065</gml:coordinates>
</gml:LineString>
</the_geom>
</TEST_GEOM_LINESTRING>
</Insert>
<Insert xmlns="http://www.opengis.net/wfs">
<TEST_GEOM_LINESTRING xmlns="https://biuro.biall-net.pl/wfs/default_db">
<OPIS xmlns="https://biuro.biall-net.pl/wfs/default_db">test3z3</OPIS>
<the_geom xmlns="https://biuro.biall-net.pl/wfs/default_db">
<gml:LineString srsName="EPSG:4326">
<gml:coordinates cs="," ts=" ">18.26404558701696246,54.39512518329294721 18.29841064721088273,54.39179953230643605</gml:coordinates>
</gml:LineString>
</the_geom>
</TEST_GEOM_LINESTRING>
</Insert>
</Transaction>
Result:
<?xml version="1.0" encoding="UTF-8"?>
<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">
<wfs:InsertResult>
<ogc:FeatureId fid="TEST_GEOM_LINESTRING.522" xmlns:ogc="http://www.opengis.net/ogc"/>
<ogc:FeatureId fid="TEST_GEOM_LINESTRING.523" xmlns:ogc="http://www.opengis.net/ogc"/>
<ogc:FeatureId fid="TEST_GEOM_LINESTRING.524" xmlns:ogc="http://www.opengis.net/ogc"/>
</wfs:InsertResult>
<wfs:TransactionResult>
<wfs:Status>
<wfs:SUCCESS/>
</wfs:Status>
</wfs:TransactionResult>
</wfs:WFS_TransactionResponse>
ID of records are in tag <wfs:InsertResult> in the same order as they were queried. So record 522 has OPIS = test1z3, 523 has OPIS = test2z3, 524 has OPIS = test3z3