Unfortunately I happened to read that page thoroughly only *after* posting to the list.... <br>Anyway. Yes it works but with a list of caveat.<br><br>First of all none of the solutions on that page were ideal for me since IIS is currently a requirement and I would need to serve more than just 1 wfs map file. The snippet of asp code is useless as it does not support POST requests or setting environment variables. 
<br>So I wrote my own piece of php code which sets MS_MAPFILE and pipes the input body to mapserv.exe. That does the trick and makes it possible to serve several map files just by changing the URI.<br><br>The second problem is more tricky. I really haven't done thorough testing on different platforms and versions, so it might be a specific issue with the windows version. 
<br>Apparently mapserv.exe has a problem reading XML POST requests when lines are terminated by CR/LF. Depending on the setup/configuration, either it replies the messages &quot;body is short&quot; or just sits there waiting until it time outs. 
<br>Unfortunately MapInfo seems to do just that, as it adds two CR/LF, one after the XML declaration, the other as the last characters. So I updated the same php script to strip CR from the POST body and reset the content-length header (actually a CGI environment variable).
<br><br>After that last change Mapinfo was able to successfully download the wfs layers into a local table. <br>Hope this turns out to be helpful.<br><br>Also, maybe someone can give a feedback on the CR/LF issue?<br><br>
Francesco<br><br><div><span class="gmail_quote">On 5/2/06, <b class="gmail_sendername">
Daniel Morissette</b> &lt;<a href="mailto:dmorissette@mapgears.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">dmorissette@mapgears.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Francesco,<br><br>Have you tried using a wrapper script to pass the map parameter via the<br>MS_MAPFILE environment variable using one of the methods suggested in<br>the WMS server howto at:<br><a href="http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-online-resource-url</a><br><br>I would be interested to know if MapInfo works if the map path is passed<br>this way.<br><br>Daniel<br><br><br>Francesco Antognini wrote:
<br>&gt; Hello<br>&gt; I think I'm stuck on a similar problem and maybe I can give further<br>&gt; information.<br>&gt; I'm basically doing the same thing, testing the WFS service with Mapinfo<br>&gt; and while a GetFeature issued from a browser works fine, the same thing
<br>&gt; done from Mapinfo doesn't work. (WMS works fine)<br>&gt;<br>&gt; After poking around with various tools, I start to believe this might be<br>&gt; a POST vs. GET issue.<br>&gt; A browser works with GET requests and appends parameters to the URL,
<br>&gt; including the vital map path. This works fine.<br>&gt; However MapServer in GetCapabilities advertises the POST services too,<br>&gt; and some clients will indeed send their requests as POST of XML data.<br>&gt; Mapinfo does it for sure.
<br>&gt; Now: no matter what workaround I use to bring the map into the request,<br>&gt; this will still appear as an URL parameter, while the rest of the<br>&gt; request is posted as XML.<br>&gt; My feeling is that mapserv.exe

 gets confused about this and thinks that<br>&gt; this is really a GET request and starts complaining in various ways<br>&gt; about lack of parameters.<br>&gt;<br>&gt; If that's the real issue, then I can think of some workarounds. The
<br>&gt; first being how to reinject the map into the request without using a URL<br>&gt; parameter. Any idea?<br>&gt;<br>&gt; Hope I haven't been too confusing<br>&gt; TIA<br>&gt; F.Antognini<br>&gt;<br>&gt;<br>&gt; On 4/26/06, *Léveillé, James* &lt;
<a href="mailto:James.Leveille@mtq.gouv.qc.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">James.Leveille@mtq.gouv.qc.ca</a><br>&gt; &lt;mailto:<a href="mailto:James.Leveille@mtq.gouv.qc.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
James.Leveille@mtq.gouv.qc.ca</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hi all,
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I'm trying to test MapServer (v 4.8.3), the WFS service, with<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; MapInfo (v 8.0) and keep having this error message:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; *&quot;The WFS Server returned data which was neither in the requested
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; format nor a recognized WFS service exception : POST body is short.*<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; *In response to a DescribeFeatureType request, the WFS Server<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; returned an invalid feature type.&quot;*<br>&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; The GetCapabilities looks fine, and the GetFeature works fine with
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; IE ...<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Here is my (simple) MapFile.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; THANKS A LOT !!!<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;snip&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ...................<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/snip&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; __________________________________________
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; *James Léveillé*<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; *Intélec Géomatique*<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 420, boul. Charest Est<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Bureau 400<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Québec (QC), Canada<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; G1K 8M4<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Intélec Géomatique: 
418.687.5000<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; MTQ: 418.380.2005 (#227)<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Francesco Antognini<br>&gt; Computer Consultant<br>&gt; Switzerland<br>&gt; <a href="mailto:fantognini@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
fantognini@gmail.com</a>
 &lt;mailto:<a href="mailto:fantognini@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fantognini@gmail.com</a>&gt;<br><br><br>--<br>Daniel Morissette<br><a href="http://www.mapgears.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.mapgears.com/</a><br></blockquote></div><br><br clear="all">
<br>-- <br>Francesco Antognini<br>Computer Consultant<br>Switzerland<br><a href="mailto:fantognini@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">fantognini@gmail.com</a>