Re: [OpenLayers-Users] WMSCapabilities parse problem

2010-03-02 Thread bartvde
Hi, I think you need to use a proxy in between. http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost Best regards, Bart > > This doesnt help. > Firebug shows that response.responseXML is null and response.responseText > is > empty string. > So the problem is not in the parser but

Re: [OpenLayers-Users] WMSCapabilities parse problem

2010-03-02 Thread maxho
This doesnt help. Firebug shows that response.responseXML is null and response.responseText is empty string. So the problem is not in the parser but in the GET request I guess, because in browser this URL ( http://apps1.gdr.nrcan.gc.ca/cgi-bin/worldmin_en-ca_ows?request=GetCapabilities&service=WMS

Re: [OpenLayers-Users] WMSCapabilities parse problem

2010-03-02 Thread bartvde
Hi, you don't need Format.XML in between but I doubt that's your problem. var CAPformat = new OpenLayers.Format.WMSCapabilities(); var cap = CAPformat.read(response.responseXML || response.responseText); Can you share the output of your WMS GetCapabilities response? Best regards, Bart > > Hi.

[OpenLayers-Users] WMSCapabilities parse problem

2010-03-02 Thread maxho
Hi. I'm trying to parse WMS GetCapabilities response to get LegendURLs. I started with sample from http://trac.openlayers.org/ticket/1176 and was able to read "version" property. However I can't read "Service" and "Capability" nodes of response. They show up as undefined in firebug console. I tr