Thanks Jukka, Robert,<br><br>Jukka was right... it was saved as mapserv.exe, but when I opened it with an editor, it was the appropriate XML...&nbsp; I just assumed that it was downloading the binary itself and didn&#39;t bother downloading it.<br>
<br>Thanks!<br><br>Matt<br><br><div class="gmail_quote">On Wed, Jun 4, 2008 at 8:01 AM, Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I believe everything is OK. Try saving the file mapserv.exe on your disk and open it with text editor. &nbsp;It is just that WMS standard gives such a MIME type for GetCapabilities response that it is not often recognised as XML.<br>

<br>
-Jukka Rahkonen-<br>
<br>
&gt; -----Alkuperäinen viesti-----<br>
&gt; Lähettäjä: <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a><br>
&gt; [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a>] Puolesta<br>
&gt; Matthew Pettis<br>
&gt; Lähetetty: 4. kesäkuuta 2008 15:56<br>
&gt; Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; Aihe: [mapserver-users] Making mapserver into a WMS<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m trying to test ms4w as a WMS for use with OpenLayers.<br>
&gt; Went through the tutorial at:<br>
&gt;<br>
&gt; <a href="http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-ma" target="_blank">http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-ma</a><br>
&gt; pfile-for-your-wms<br>
&gt;<br>
&gt; I created a simple mapfile according to the specs (I think).<br>
&gt; It is after the &#39;===========&#39; delimiter. &nbsp;I called it with<br>
&gt; the following<br>
&gt; url:<br>
&gt;<br>
&gt; <a href="http://localhost/cgi-bin/mapserv.exe?map=C:%5Cms4w%5CApache%5Chtdocs" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs</a><br>
&gt; \tmp\map.map&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetCapabilities<br>
&gt;<br>
&gt; and it asked me to download the mapserv.exe application. &nbsp;Not<br>
&gt; what i expect. &nbsp;I&#39;m pretty sure everything else is in order,<br>
&gt; because when I<br>
&gt; call:<br>
&gt;<br>
&gt; <a href="http://localhost/cgi-bin/mapserv.exe?map=C:%5Cms4w%5CApache%5Chtdocs" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=C:\ms4w\Apache\htdocs</a><br>
&gt; \tmp\map.map&amp;mode=map<br>
&gt;<br>
&gt; I get the expected map in my browser.<br>
&gt;<br>
&gt; Any ideas what is wrong or how I am screwing up the incantation?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Matt<br>
&gt;<br>
&gt; ===========<br>
&gt; MAP<br>
&gt;<br>
&gt; &nbsp; &nbsp; ################<br>
&gt; &nbsp; &nbsp; # Map attributes<br>
&gt; &nbsp; &nbsp; ################<br>
&gt; &nbsp; IMAGETYPE &nbsp; PNG<br>
&gt; &nbsp; EXTENT &nbsp; &nbsp; &nbsp;184056.505 4809728.25 767381.245 5478975.75<br>
&gt; &nbsp; SIZE &nbsp; &nbsp; &nbsp; &nbsp;660 495<br>
&gt; &nbsp; IMAGECOLOR &nbsp;255 255 255<br>
&gt; &nbsp; FONTSET &nbsp; &nbsp; &quot;C:/ms4w/Apache/htdocs/fonts/fonts.list&quot;<br>
&gt;<br>
&gt; &nbsp; PROJECTION<br>
&gt; &nbsp; &nbsp; &quot;init=epsg:26915&quot;<br>
&gt; &nbsp; END<br>
&gt;<br>
&gt; &nbsp; &nbsp; ####################<br>
&gt; &nbsp; &nbsp; # Web settings<br>
&gt; &nbsp; &nbsp; ####################<br>
&gt; &nbsp; WEB<br>
&gt; &nbsp; &nbsp; IMAGEPATH &nbsp; &quot;C:/ms4w/Apache/htdocs/tmp/&quot;<br>
&gt; &nbsp; &nbsp; IMAGEURL &nbsp; &nbsp;&quot;/tmp/&quot;<br>
&gt; &nbsp; &nbsp; METADATA<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;wms_title&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;WMS Demo Server&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;wms_onlineresource&quot; &nbsp;&quot;<a href="http://localhost/cgi-bin/mapserv.exe" target="_blank">http://localhost/cgi-bin/mapserv.exe</a>?&quot;<br>
&gt; &nbsp; &nbsp; END<br>
&gt; &nbsp; END<br>
&gt;<br>
&gt; &nbsp; &nbsp; ####################<br>
&gt; &nbsp; &nbsp; # State<br>
&gt; &nbsp; &nbsp; # Background shows through missing precincts to show<br>
&gt; where no votes will be coming from<br>
&gt; &nbsp; &nbsp; ####################<br>
&gt; &nbsp; LAYER<br>
&gt; &nbsp; &nbsp; NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;state&quot;<br>
&gt; &nbsp; &nbsp; METADATA<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &quot;wms_title&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;state&quot;<br>
&gt; &nbsp; &nbsp; END<br>
&gt; &nbsp; &nbsp; CONNECTIONTYPE &nbsp; &nbsp;postgis<br>
&gt; &nbsp; &nbsp; CONNECTION &nbsp; &nbsp; &nbsp; &nbsp;&quot;user=postgres dbname=gisvote password=postgres&quot;<br>
&gt; &nbsp; &nbsp; DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;the_geom from shp_state&quot;<br>
&gt; &nbsp; &nbsp; STATUS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default<br>
&gt; &nbsp; &nbsp; TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;polygon<br>
&gt;<br>
&gt; &nbsp; &nbsp; CLASS<br>
&gt; &nbsp; &nbsp; &nbsp; NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;state&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; COLOR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 200 200 200<br>
&gt; &nbsp; &nbsp; END<br>
&gt;<br>
&gt; &nbsp; END # Layer state<br>
&gt;<br>
&gt; END<br>
</div></div><div><div></div><div class="Wj3C7c">&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>It is from the wellspring of our despair and the places that we are broken that we come to repair the world.<br>-- Murray Waas