[webmap-discuss] mapserver and xml respons
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Thu Dec 14 07:26:35 EST 2006
This is the way OGC defines it in WMS 1.1.X. In later versions they use
text/xml again.
So Mapserver is doing the right thing according to the spec. Nothing much to
be done about it I guess.
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
--------- Oorspronkelijk bericht --------
Van: webmap-discuss at mail.osgeo.org
Naar: webmap-discuss at mail.osgeo.org <webmap-discuss at mail.osgeo.org>
Onderwerp: [webmap-discuss] mapserver and xml respons
Datum: 14/12/06 09:36
> 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&amp;version=1.1.0&amp;&amp;request=GetCapabilities&amp;&amp;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
> -------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webmap-discuss-unsubscribe at mail.osgeo.org
> For additional commands, e-mail: webmap-discuss-help at mail.osgeo.org
>
>
>
More information about the Webmap-discuss
mailing list