[mapserver-users] [tinyOWS]Trouble with feature insertion

Vlad Gapchich gavlig at gmail.com
Thu Mar 21 13:42:58 PDT 2013


Hello guys!
I was very glad to find that tinyows supports wfs-t and tried it out with a
simple example. However, it didn't work and i can't find a particular
reason for that. I dug deep into code and found out that error happens on
xmlSchemaValidateDoc, error code 1843 -  Element '{
http://www.opengis.net/wfs}Transaction': Character content other than
whitespace is not allowed because the content type is 'element-only'. I
understand that it's not directly tinyows' issue, but i doubt that it's
libxml2 either.

The request i send looks like this:

<wfs:Transaction
  service='WFS'
  version='1.1.0'
  xmlns:wfs='http://www.opengis.net/wfs'
  xmlns:gml='http://www.opengis.net/gml'
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  xmlns:map='http://www.tinyows.org/map'
  xsi:schemaLocation='http://www.opengis.net/wfs

http://schemas.opengis.net/wfs/1.1.0/WFS-transaction.xsd

http://127.0.0.1/cgi-bin/tinyows?service=WFS&request=DescribeFeatureType&version=1.1.0'/
>
  <wfs:Insert>
    <map:nodes>
      <map:coord>
        <gml:Point srsDimension='2' srsName='urn:x-ogc:def:crs:EPSG:4326'>
          <gml:coordinates decimal='.' cs=',' ts='
'>30.454343,50.447954</gml:coordinates>
        </gml:Point>
      </map:coord>
    </map:nodes>
  </wfs:Insert>
</wfs:Transaction>

Any help would be much appreciated, thanks in advance

Best regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130321/326f06b8/attachment.htm>


More information about the MapServer-users mailing list