<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML-esimuotoiltu Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTML-esimuotoiltuChar
        {mso-style-name:"HTML-esimuotoiltu Char";
        mso-style-priority:99;
        mso-style-link:HTML-esimuotoiltu;
        font-family:Consolas;
        color:black;}
span.Shkpostityyli21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">I guess that something went wrong but saving mapserv.exe into file and reading it with text editor is the right thing
 to do. Jörg and Jeff should have noticed that the GetCapabilities request was made without &VERSION which means the highest version 1.3.0 for Mapserver and then the normal GetCapabilities document will be sent with mime type that most browsers understand.
 Try it:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><a href="http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&REQUEST=GetCapabilities">http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMS&REQUEST=GetCapabilities</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">I may be wrong but I would rather believe that mapserv.exe contains an error message about unknown projection epsg:900913.
 Use epsg:3857 instead.  And I prefer using an explicit parameter &VERSION= always instead of relying on what version comes from the lottery when version in not defined in the query.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">-Jukka Rahkonen-
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext">Jörg Thomsen wrote:<br>
<br>
<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi,<br>
<br>
nothing went wrong. The problem under windows is, that apache(?) names the capabilities-document mapserv.exe. Save it, o</span>pen it in an editor and see your capabilities!<br>
<br>
Perhaps anyone reading this can tell us how to configure the windows-instrallation, so that the capabilities-doc is not named .exe? I don't know.<br>
<br>
Jörg<br>
<br>
<br>
<br>
Am 23.11.2015 um 10:30 schrieb rishi:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.65pt;background-color:rgba(248,248,248,0.6)">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif"">i am trying to create wms service using postgres data in mapserver my map file(wms.map) is<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.65pt;background-color:rgba(248,248,248,0.6)">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif"">MAP EXTENT 8240841.450745 2400319.900386 9218007.463612 3107183.406947 TRANSPARENT on IMAGETYPE png size 150 500<o:p></o:p></span></p>
<pre style="background:#EEEEEE;max-height:600px;word-wrap:normal;overflow:auto"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">web<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">    metadata<o:p></o:p></span></code></pre>
<p style="margin:0cm;margin-bottom:.0001pt;line-height:14.65pt;background-color:rgba(248,248,248,0.6)">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif"">"wms_title" "Customer Airports" "wms_onlineresource" "<a href="http://localhost:8085/cgi-bin/mapserv.exe">http://localhost:8085/cgi-bin/mapserv.exe</a>?" "wms_enable_request" "*" "wms_srs"
 "EPSG:4326 EPSG:900913" "wms_feature_info_mime_type" "text/html" "wms_format" "image/png"<o:p></o:p></span></p>
<pre style="background:#EEEEEE;max-height:600px;word-wrap:normal;overflow:auto"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">    end<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">end<o:p></o:p></span></code></pre>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.65pt;background-color:rgba(248,248,248,0.6)">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif"">LAYER CONNECTIONTYPE postgis<br>
CONNECTION "user=postgres password=abcd dbname=sample port=5432 host=localhost" DATA "geom FROM district_old using unique gid"<o:p></o:p></span></p>
<pre style="background:#EEEEEE;max-height:600px;word-wrap:normal;overflow:auto"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">STATUS Default<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">TYPE polygon<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">PROJECTION<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">      "init=epsg:900913"<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">END<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">labelitem 'district'<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">class                    <o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">    style                <o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm"><o:p> </o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">        #color 55 230 51<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">        outlinecolor 90 90 90<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">        width 2<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">    end <o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">    LABEL<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">        #color 255 255 255<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">        size 2<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">        BACKGROUNDCOLOR 255 201 14<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">        position auto<o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">    END          <o:p></o:p></span></code></pre>
<pre style="background:#EEEEEE"><code><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0cm">end  <o:p></o:p></span></code></pre>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.65pt;background-color:rgba(248,248,248,0.6)">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif"">END<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.65pt;background-color:rgba(248,248,248,0.6)">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif"">END<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;line-height:14.65pt;background-color:rgba(248,248,248,0.6)">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif"">in the browser when i paste the url "<a href="http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities"><span style="color:#358DAA;border:none windowtext 1.0pt;padding:0cm;text-decoration:none">http://localhost/cgi-bin/mapserv.exe?map=c://ms4w/apps/webgis/wms.map&SERVICE=WMS&REQUEST=GetCapabilities</span></a>"<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.65pt;background-color:rgba(248,248,248,0.6)">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif"">it is not displaying the xml file instead it is downloading the mapserv.exe file<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:12.0pt;margin-left:0cm;line-height:14.65pt;background-color:rgba(248,248,248,0.6)">
<span style="font-size:11.5pt;font-family:"Helvetica","sans-serif"">please correct my code also tell me the requirements to work with wms<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>mapserver-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>