<>
I am using WFS-T in a mobile application to commit changes to a postgis
database via geoserver 2.6.
I build the http requests myself (not using any framework like geotools or
openlayers). I already support wfs1.1.0 and would like to extend to support for
2.0.0.
I am unable to send a successful commit request so far, reading the standard
did not help me find the answer, and I found no examples on the web... Here is
my post parameters:
<wfs:Transaction version="2.0.0" service="WFS"
xmlns:ows="http://www.opengis.net/ows" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xxxxxxx/geoserver/schemas/wfs/2.0/wfs.xsd">
<wfs:Update typeNames="av_dev:CopperCable">
<wfs:Property>
<wfs:ValueReference>InsertBy</wfs:ValueReference>
<wfs:Value>0</wfs:Value>
</wfs:Property>
<ogc:Filter>
<ogc:GmlObjectId gml:id="CopperCable.2" />
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>
I am getting this error from geoserver: java.lang.IllegalArgumentException:
argument type mismatch
This request works for wfs 1.1.0 if I replace the version number and the
"ValueReference" tag with "Name".
Can anyone tell what is wrong in my request, or point to some
examples/tutorials?
Thanks
Guillaume Champlong | Developer
Augview | P O Box 125046, St Heliers, Auckland 1740, New Zealand
p: +64 9 575 5298 | m: +64 22 100 2458
e: mailto:guilla...@augview.net| w: www.augview.net <http://www.augview.net/>
<http://www.augview.net/>
<http://www.augview.net/>
Winner of Innovation & Commercialisation and Supreme Awards at 2014 NZ Spatial
Excellence Awards
Facebook <https://www.facebook.com/pages/Augview/671097059582677?ref=stream>
LinkedIn <http://www.linkedin.com/company/augview-ltd> Twitter
<https://twitter.com/Augview> You Tube <https://youtube.com/Augviewltd>
Subscribe to Augview Newsletter <http://eepurl.com/RUvuv>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users