mapserver and xml respons
Steven M. Ottens
steven.ottens at geodan.nl
Thu Dec 14 06:32:37 EST 2006
Hi all,
I'm wondering how to solve the following problem:
I've got a mapbuilder/mapserver setup where mapserver is setup with
relative paths, if I request a capabilities doc:
<option
value="javascript:config.loadModel('wmsCapTemplate','/cgi-bin/edugis/mapserv.cgi?map=maps/edugis/cbs.map&version=1.1.0&&request=GetCapabilities&&service=WMS')">
I'm talking directly to mapserver and it gives me a capabilities doc
with content-type:
application/ogc.vnd.wms_xml which my browser does not understand as xml.
So my XmlHttpRequest bails out with a no XMLResponse error and
mapbuilder cannot parse the capabilities doc.
I'm not sure why mapserver returns this content-type, as far as I know
this is not supported by most browsers (IE). FF1.5 is slightly smarter,
it recognises the <?xml first line and parses the the doc anyway, but I
end up with a namespaces hell for some odd reason.
The usual solution for mapbuilder is to use a proxy which sets the
content type to text/xml and everything works fine. However for my
particular setup I cannot use the proxy, so I rebuild mapserver with a
hardcoded content-type 'text/xml'.
My questions to you all are:
-anyone came across this problem before?
-is there a way to make browsers understand application/ogc.vnd.wms_xml?
-is it possible to set mapserver's content-type to text/xml
-if not WHY NOT?
Regards,
Steven
--
Geodan S&R Amsterdam
-------------------------------------
Geodan S&R
President Kennedylaan 1
1079 MB Amsterdam (NL)
-------------------------------------
Tel: +31 (0)20 - 5711 311
Fax: +31 (0)20 - 5711 333
-------------------------------------
E-mail: steven.ottens at geodan.nl
Website: www.geodan.nl
Disclaimer: www.geodan.nl/disclaimer
-------------------------------------
More information about the Mail_webmap-discuss
mailing list