Data insert (without namespaces)
There is simplified and more efficient to sent Transaction data without full namespaces
declaration, as in following
example:
<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">
<p5_default_db:P5Automation1OrangeRaportSimple>
<DEVICE_ID>1</DEVICE_ID>
<IdPort>1</IdPort>
<InputValued>2.2</InputValued>
<PortCustName>Water Level</PortCustName>
</p5_default_db:P5Automation1OrangeRaportSimple>
</Insert>
<Insert xmlns="http://www.opengis.net/wfs">
<p5_default_db:P5Automation1OrangeRaportSimple>
<DEVICE_ID>1</DEVICE_ID>
<IdPort>2</IdPort>
<InputValued>100</InputValued>
<PortCustName>Battery Status</PortCustName>
</p5_default_db:P5Automation1OrangeRaportSimple>
</Insert>
</Transaction>
The
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="P5Automation1OrangeRaportSimple.2" xmlns:ogc="http://www.opengis.net/ogc"/>
<ogc:FeatureId fid="P5Automation1OrangeRaportSimple.3" xmlns:ogc="http://www.opengis.net/ogc"/>
</wfs:InsertResult>
<wfs:TransactionResult>
<wfs:Status>
<wfs:SUCCESS/>
</wfs:Status>
</wfs:TransactionResult>
</wfs:WFS_TransactionResponse>
Data insert (without namespaces, with GPS Point property type)
<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">
<p5_default_db:P5Automation1OrangeRaportSimple>
<DEVICE_ID>1</DEVICE_ID>
<IdPort>1</IdPort>
<InputValued>2.2</InputValued>
<PortCustName>Water Level</PortCustName>
<the_geom>
<gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326">
<gml:coordinates decimal="." cs=" " ts=",">20.5791973570253 52.8839226452478</gml:coordinates>
</gml:Point>
</the_geom>
</p5_default_db:P5Automation1OrangeRaportSimple>
</Insert>
<Insert xmlns="http://www.opengis.net/wfs">
<p5_default_db:P5Automation1OrangeRaportSimple>
<DEVICE_ID>1</DEVICE_ID>
<IdPort>2</IdPort>
<InputValued>100</InputValued>
<PortCustName>Battery Status</PortCustName>
<the_geom>
<gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326">
<gml:coordinates decimal="." cs=" " ts=",">20.5791973570253 52.8839226452478</gml:coordinates>
</gml:Point>
</the_geom>
</p5_default_db:P5Automation1OrangeRaportSimple>
</Insert>
</Transaction>