GetCapabilities request results in download mapserv.exe

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Wed Apr 25 08:36:30 PDT 2007


> 
> Altough this has been handled before:
> http://www.nabble.com/Enabling-WMS-service-on-MapServer-t3440626.html
> I'm experiencing the same problem.
> Yet, when I try to open the resulting mapserv.exe file it 
> opens a (so it seems) perfect capabilities-document ( not an 
> error-document)
> 
> Running my app on several pc's results in not showing up the 
> WMS. I don't know if the above problem is related to this. 
> Anyone experiencing the same ? I try to make mapserver make a 
> capabilities document which is viewable in the browser...
> 

The OGC:WMS 1.1.0 and 1.1.1 specifications state that, for
GetCapabilities responses, the OGC:WMS server returns a specific MIME
type (i.e. application/vnd.ogc.xml (see subclause 6.5.3 of OGC:WMS 1.1.1
at
http://portal.opengeospatial.org/files/?artifact_id=1081&version=1&forma
t=pdf).

A MIME type is passed from the web server to the client (in your case, a
web browser), from which a client can decide how to process it.

Example 1: if using a web browser, if a web server returns an HTTP
Header of "Content-type:image/png", then the web browser will know that
this is a PNG image and display it accordingly.

Example 2: if using a web browser, if a web server returns an HTTP
Header of "Content-type:text/html", then the web browser will know that
this is an HTML page and display it accordingly (i.e. tables, divs,
etc.)

Basically, what is happening is that the OGC:WMS is returning, in the
headers of the HTTP response, a MIME type which your web browser does
not understand, which usually prompts a dialog box on whether to open or
download the content (i.e. Content-type:application/vnd.ogc.wms_xml).

You could configure your web browser to handle the
application/vnd.ogc.wms_xml MIME type a certain way (i.e. open in
Notepad, etc.).
Hope this helps

..Tom

P.S. I've since posted this as an FAQ at
http://mapserver.gis.umn.edu/docs/faq/ogc-wms-capabilities-mime-type



More information about the MapServer-users mailing list