Thanks. I tried to change to "service=WFS" and got an XML with some warnings that I think I understood in the MapServer docs links you sent. I have a problem with proxy.cgi in GeoServer not understanding this ContentType. Do you think I could enter a new MIME type in my OS X Servers Apache? How should that look like? Any Idea?<br>
<br><br><br><div class="gmail_quote">2009/4/1 Daniel Morissette <span dir="ltr"><<a href="mailto:dmorissette@mapgears.com" target="_blank">dmorissette@mapgears.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Asle Benoni wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<br>
When I use this URL<br>
<br>
</div><a href="http://localhost/cgi-bin/demo?request=getcapabilities&service=wms&version=1.1.1&map=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map" target="_blank">http://localhost/cgi-bin/demo?request=getcapabilities&service=wms&version=1.1.1&map=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map</a> <<a href="http://localhost/cgi-bin/demo?request=getcapabilities&service=wms&version=1.1.1&map=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map" target="_blank">http://localhost/cgi-bin/demo?request=getcapabilities&service=wms&version=1.1.1&map=/Library/WebServer/Documents/Naturkart/kulturminnekart/apps/demo/demowms.map</a>><div>
<br>
<br>
I get a file downloaded "demo.map" with no file type. This is on Windows and from my Mac (demo without the .map extension and fileType:* application/vnd.ogc.wms_xml*). The file is an XML file so when I change the suffix to .xml it works. Is this correct?<br>
<br>
</div></blockquote>
<br>
Yes, that's correct, but for WMS, not WFS: application/vnd.ogc.wms_xml is the expected MIME Type for WMS GetCapabilities responses. OGC has moved back to using text/xml in later versions of its specs as those custom MIME Types caused all sorts of trouble with very little benefits.<br>
<br>
Note that in your example you are using SERVICE=WMS and not WFS, is this really what you wanted?<div><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is MapServer out-of-the-box a WFS service?<br>
</blockquote>
<br></div>
Yes and no. Out of the box it will respond to WFS (and WMS) requests, but if your mapfile lacks some configuration information then it may not behave according to spec. See the WMS and WFS server docs for all the details:<br>
<br>
<a href="http://www.mapserver.org/ogc/wms_server.html" target="_blank">http://www.mapserver.org/ogc/wms_server.html</a><br>
<a href="http://www.mapserver.org/ogc/wfs_server.html" target="_blank">http://www.mapserver.org/ogc/wfs_server.html</a><br>
<br>
Daniel<br><font color="#888888">
-- <br>
Daniel Morissette<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
</font></blockquote></div><br>