4.8: WFS post body is too short

Bart van den Eijnden ben at SYNCERA.NL
Fri Feb 3 12:22:03 EST 2006


Is this related to the fix for bug 1628?

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1628

For reference, I try to post using the following Python script:

import httplib, urllib, string, base64, time

# 1) set variable for request to be posted

request="""
<GetFeature service="WFS" version="1.0.0" xmlns="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.opengis.net/wfs/1.0.0 WFS-basic.xsd"><Query typeName="postcode"><ogc:Filter><ogc:And><ogc:PropertyIsLike wildCard='*' singleChar='.' escape='!' matchCase='false'><ogc:PropertyName>PC6</ogc:PropertyName><ogc:Literal>8044PC*</ogc:Literal></ogc:PropertyIsLike><ogc:PropertyIsLike wildCard='*' singleChar='.' escape='!' matchCase='false'><ogc:PropertyName>HUISNR</ogc:PropertyName><ogc:Literal>*</ogc:Literal></ogc:PropertyIsLike></ogc:And></ogc:Filter></Query></GetFeature>
"""
# 2) set WFS servername and hostname

# productie
server="/stragisweb/cgi-bin/mapserv.exe?map=/ms4w/apps/stragisweb/htdocs/sites/zwolle/map/stragisweb.map&"
hostname="localhost:8080"

# 3) execute the request

h = httplib.HTTP(hostname)
h.putrequest("POST", server)
h.putheader("Content-type", "text/xml")
h.putheader("Content-length", "%d" % len(request))
h.putheader("Accept", "text/xml")
h.putheader('Host', hostname)
h.endheaders()
h.send(request)
reply, msg, hdrs = h.getreply()

# 4) print the response
print h.getfile().read()

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Bart van den Eijnden <ben at SYNCERA.NL> 3-2-2006 17:58:00 >>>
Hi list,

with all WFS GetFeature requests posted to Mapserver 4.8 I get back:

POST body is short

This all works fine with a 48beta2 binary.

What has happened?

D:\ms4w\apps\stragisweb\htdocs\cgi-bin>mapserv -v
MapServer version 4.8.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG
 SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=P
OSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG

Best regards,
Bart


Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl 


-
==
Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen.


-
==
Let op: wijziging! Vanaf 1 februari 2006 eindigen al onze mailadressen op @Syncera.NL. We verzoeken u vriendelijk om dit aan te passen in uw relatiebeheersysteem. Tot 1 april 2006 wordt uw mail nog naar onze medewerkers doorgestuurd. Na die tijd komen de oude mailadressen geheel te vervallen.



More information about the mapserver-users mailing list