<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">You are not normally supposed to include the other parameters (&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities) when you are adding a WMS/WFS URL to QGIS.  You specify the service and version in the QGIS dialog box instead.  QGIS will append those parameters for you, and query the GetCapabilities for you, and provide you with a list of options.  After you select a layer to include, QGIS will query without the GetCapabilities to retrieve the actual map images, based on what it finds when it did the GetCapabilities query.<div class=""><br class=""></div><div class="">So, try <a href="http://localhost:8085/cgi-bin/mapserv.exe" class="">http://localhost:8085/cgi-bin/mapserv.exe</a>?map=c://ms4w/apps/webgis/wmssample.map<div class=""><br class=""></div><div class="">(In fact when you are working with other GIS packages it is sometimes even a problem to include the ?map=  parameter explicitly in the URL.  There's some approach with Apache Rewrite rules or mapserver configuration files or something like that to tell mapserver the name of the mapfile without having it as a parameter in the URL.  I can't find the documentation on that right now, but I didn't look too hard.  It seems the normal use case is to have a public facing URL and then your different feature layers are all defined in the same mapfile that's hidden from the user.  Anyway, my use case has hundreds of dynamically generated mapfiles, and QGIS never seems to have a problem with having the ?map= in the URL.)</div><div class=""><br class=""></div><div class="">As the other person mentioned, try to avoid putting the drive letter "c://" in the URL. It's just confusing to everyone to have a drive letter in the middle of a url.</div><div class=""><br class=""></div><div class="">Also, in your email below I see a space before the word map.  Make sure that's not there in reality.  " map" might not be recognized as the same parameter name as "map" </div><div class=""><br class=""><div class="">
<span class="Apple-style-span" style="border-collapse: separate; line-height: normal; border-spacing: 0px;"><div class=""><div class="">--</div><div class="">John Abraham</div><div class="">jea@hbaspecto.com</div><div class="">403-232-1060</div></div></span>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Nov 24, 2015, at 12:24 AM, rishi <rishe28@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">hi all<div class=""><br class=""></div><div class="">my wms url is</div><div class=""> <a href="http://localhost:8085/cgi-bin/mapserv.exe" class="">http://localhost:8085/cgi-bin/mapserv.exe</a>? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</div><div class=""><br class=""></div><div class="">when i hit the above url it is downloading the mapserv.exe then i am changing .exe to .txt then i can able to see xml file</div><div class=""><br class=""></div><div class="">but when i am trying to add the above url in qgis, map is not displaying also i am getting error as document is in invalid format.</div><div class=""><br class=""></div><div class="">if i hit the url  <a href="http://localhost:8085/cgi-bin/mapserv" class="">http://localhost:8085/cgi-bin/mapserv</a>? map=c://ms4w/apps/webgis/wmssample.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities</div><div class=""> </div><div class="">without .exe the it is showing error as <span style="font-family: 'Times New Roman'; font-size: inherit;" class="">The requested URL /cgi-bin/mapserv was not found on this server.</span></div><div class=""><span style="font-family: 'Times New Roman'; font-size: inherit;" class=""><br class=""></span></div><div class=""><span style="font-family: 'Times New Roman'; font-size: inherit;" class="">please tell me how to resolve the issue</span></div><div class=""> </div><div class=""><br class=""></div></div>
_______________________________________________<br class="">mapserver-users mailing list<br class="">mapserver-users@lists.osgeo.org<br class="">http://lists.osgeo.org/mailman/listinfo/mapserver-users</div></blockquote></div><br class=""></div></div></body></html>