Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to setup a WMS server using map server. As per the documentation http://mapserver.org/ogc/wms_server.html, I have added the metadata required for WMS and trying to hit the following URL:

http://localhost:8080/cgi-bin/mapserv.exe?map=mywms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

But eventually what I get is just the mapserv.exe which gets downloaded everytime.Could someone tell me where I could be wrong.

Thank you.

Below is the metadata for WMS

"wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost:8080/cgi-bin/mapserv.exe? MAP=C:/ms4w/Apache/htdocs/.../.../xyz.map" "wms_srs" "EPSG:4269 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wms_enable_request" "*"

And below is the request :

http://localhost:8080/cgi-bin/mapserv.exe?MAP=C:/ms4w/Apache/htdocs/.../.../xyz.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

See the MapServer FAQ but this isn't actually the executable but the capabilities document and your browser doesn't recognize the mime type of application/vnd.ogc.xml

share|improve this answer
    
I have defined the mime type under the metadata as following : "wms_feature_info_mime_type" "text/html" –  Senthil Apr 17 '12 at 10:35
    
but capabilities documents have a mime type of application/vnd.ogc.xml –  iant Apr 17 '12 at 10:36
    
please have a look at the question where I have pasted the metadata and the request URL. –  Senthil Apr 17 '12 at 10:48
    
please read the FAQ I linked to which answers this question. If you open up the file returned it is in fact xml inside. –  iant Apr 17 '12 at 10:54
    
Thanks , it works fine now. –  Senthil Apr 17 '12 at 11:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.