<wfs:Transaction version="2.0.0" service="WFS" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd
http: //www.opengis.net/gml/3.2
http: //schemas.opengis.net/gml/3.2.1/gml.xsd">
<wfs:Insert>
<WFS_test_wfs:PG.省 xmlns:WFS_test_wfs="http://127.0.0.1:8699/kqgis/rest/services/test_wfs/data/wfs">
<WFS_test_wfs:省>南沙群岛</WFS_test_wfs:省>
<WFS_test_wfs:省代码>1</WFS_test_wfs:省代码>
<WFS_test_wfs:the_geom>
<gml:Polygon srsName="urn:ogc:def:crs:EPSG::4326" gml:id="南沙.geom.0">
<gml:exterior>
<gml:LinearRing>
<gml:posList>3.31823363496683 114.085926400034 10.7245463738036 114.085926400034 10.7245463738036 120.16968329265 3.31823363496683 120.16968329265 3.31823363496683 114.085926400034</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</WFS_test_wfs:the_geom>
</WFS_test_wfs:PG.省>
</wfs:Insert>
<wfs:Insert>
<WFS_test_wfs:PG.省 xmlns:WFS_test_wfs="http://127.0.0.1:8699/kqgis/rest/services/test_wfs/data/wfs">
<WFS_test_wfs:省>西沙群岛</WFS_test_wfs:省>
<WFS_test_wfs:省代码>2</WFS_test_wfs:省代码>
<WFS_test_wfs:the_geom>
<gml:Polygon srsName="urn:ogc:def:crs:EPSG::4326" gml:id="南沙.geom.1">
<gml:exterior>
<gml:LinearRing>
<gml:posList>12.1132300123355 111.639198084526 18.7260092434398 111.639198084526 18.7260092434398 115.805249000122 12.1132300123355 115.805249000122 12.1132300123355 111.639198084526</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</WFS_test_wfs:the_geom>
</WFS_test_wfs:PG.省>
</wfs:Insert>
</wfs:Transaction>
curl --location --request POST '/rest/services//data/wfs?service=WFS&version=2.0.0&request=Transaction&identifier=insert' \
--header 'Content-Type: application/xml' \
--data-raw '<wfs:Transaction version="2.0.0" service="WFS" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://schemas.opengis.net/wfs/2.0/wfs.xsd
http: //www.opengis.net/gml/3.2
http: //schemas.opengis.net/gml/3.2.1/gml.xsd">
<wfs:Insert>
<WFS_test_wfs:PG.省 xmlns:WFS_test_wfs="http://127.0.0.1:8699/kqgis/rest/services/test_wfs/data/wfs">
<WFS_test_wfs:省>南沙群岛</WFS_test_wfs:省>
<WFS_test_wfs:省代码>1</WFS_test_wfs:省代码>
<WFS_test_wfs:the_geom>
<gml:Polygon srsName="urn:ogc:def:crs:EPSG::4326" gml:id="南沙.geom.0">
<gml:exterior>
<gml:LinearRing>
<gml:posList>3.31823363496683 114.085926400034 10.7245463738036 114.085926400034 10.7245463738036 120.16968329265 3.31823363496683 120.16968329265 3.31823363496683 114.085926400034</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</WFS_test_wfs:the_geom>
</WFS_test_wfs:PG.省>
</wfs:Insert>
<wfs:Insert>
<WFS_test_wfs:PG.省 xmlns:WFS_test_wfs="http://127.0.0.1:8699/kqgis/rest/services/test_wfs/data/wfs">
<WFS_test_wfs:省>西沙群岛</WFS_test_wfs:省>
<WFS_test_wfs:省代码>2</WFS_test_wfs:省代码>
<WFS_test_wfs:the_geom>
<gml:Polygon srsName="urn:ogc:def:crs:EPSG::4326" gml:id="南沙.geom.1">
<gml:exterior>
<gml:LinearRing>
<gml:posList>12.1132300123355 111.639198084526 18.7260092434398 111.639198084526 18.7260092434398 115.805249000122 12.1132300123355 115.805249000122 12.1132300123355 111.639198084526</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</WFS_test_wfs:the_geom>
</WFS_test_wfs:PG.省>
</wfs:Insert>
</wfs:Transaction>'
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<wfs:TransactionResponse xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wfs="http://www.opengis.net/wfs/2.0" xmlns:fes="http://www.opengis.net/fes/2.0" xmlns:gml="http://www.opengis.net/gml/3.2" version="2.0.0">
<wfs:TransactionSummary>
<wfs:totalInserted>2</wfs:totalInserted>
</wfs:TransactionSummary>
<wfs:InsertResults>
<wfs:Feature>
<fes:ResourceId rid="WFS_test_wfs:PG.省.10034"/>
</wfs:Feature>
<wfs:Feature>
<fes:ResourceId rid="WFS_test_wfs:PG.省.10035"/>
</wfs:Feature>
</wfs:InsertResults>
</wfs:TransactionResponse>