[Users] WMSCapabilitiesStore URL problem
Hugo
hfpmartins at gmail.com
Tue May 31 16:12:28 CEST 2011
Hello all,
I'm having troubles to populate the WMSCapabilitiesStore. I have the
following code:
var wmsStore = new GeoExt.data.WMSCapabilitiesStore({
url: '
http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1
',
autoLoad: true
});
The request is never shown in firebug. I know this might be related with the
proxy definition but i'm sure i have configured the openlayers proxy.cgi
correctly once that i'm able to correctly load WFS coming from this very
same Geoserver. Also, when using the following address (directly on the
browser) the response is returned correctly:
http://localhost/cgi-bin/proxy.cgi?url=http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1
'
However if i try to use this url for the store i get the following error:
<ServiceException code="MissingParameterValue" locator="request">
Could not determine geoserver request from http request
org.apache.catalina.connector.RequestFacade
I think this is related with wrong parameter passing to the server because,
if i check the request params in firebug i can see the following:
REQUESTGetCapabilitiesVERSION1.1.1url
http://localhost:8080/geoserver/ows?SERVICE=WMS
I have also tried with the following code:
var wmsStore = new GeoExt.data.WMSCapabilitiesStore({
proxy: new Ext.data.ScriptTagProxy({
url: '
http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1
',
}),
autoLoad: true
});
With this approach i get an error related to the reader (i suppose) like the
following:
missing ; before statement
<!DOCTYPE WMT_MS_Capabilities SYSTEM
"...s/wms/1.1.1/WMS_MS_Capabilities.dtd">
So, finally my question: what am i doing wrong here? Or do i need to
configure something else?
Thanks in advance.
Kind regards,
Hugo
--
Hugo Martins
LabNT - ISEGI UNL
Campus de Campolide
1070-312 Lisboa
N 38°43'56.84", W 9°9'35.74"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110531/fd9b3d83/attachment.htm
More information about the Users
mailing list