Hello all,<br><br>I'm having troubles to populate the WMSCapabilitiesStore. I have the following code:<br><br>var wmsStore = new GeoExt.data.WMSCapabilitiesStore({<br> url: '<a href="http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1">http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1</a>',<br>
autoLoad: true<br>});<br><br>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:<br>
<br><a href="http://localhost/cgi-bin/proxy.cgi?url=http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1">http://localhost/cgi-bin/proxy.cgi?url=http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1</a>'<br>
<br>However if i try to use this url for the store i get the following error:<br><pre><code class="wrappedText focusRow"> <ServiceException code="MissingParameterValue" locator="request"><br></code><code class="wrappedText focusRow"> Could not determine geoserver request from http request org.apache.catalina.connector.RequestFacade<br>
<br></code></pre>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:<br><table selected class="netInfoParamsText netInfoText netInfoParamsTable " cellpadding="0" cellspacing="0">
<tbody class=" "><tr class=" "><td class="netInfoParamName "><span class=" ">REQUEST</span></td><td class="netInfoParamValue "><code class="focusRow subFocusRow ">GetCapabilities</code></td></tr><tr class=" "><td class="netInfoParamName ">
<span class=" ">VERSION</span></td><td class="netInfoParamValue "><code class="focusRow subFocusRow ">1.1.1</code></td></tr><tr class=" "><td class="netInfoParamName "><span class=" ">url</span></td><td class="netInfoParamValue ">
<code class="focusRow subFocusRow "><a href="http://localhost:8080/geoserver/ows?SERVICE=WMS">http://localhost:8080/geoserver/ows?SERVICE=WMS</a></code></td></tr></tbody></table><br><br>I have also tried with the following code:<br>
<br>var wmsStore = new GeoExt.data.WMSCapabilitiesStore({<br>
proxy: new Ext.data.ScriptTagProxy({<br> url: '<a href="http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1">http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1</a>',<br>
}),<br>
autoLoad: true<br>
});<br>
<br>With this approach i get an error related to the reader (i suppose) like the following:<br><br><div class="errorTitle focusRow subLogRow "><span class="errorMessage ">missing ; before statement</span></div><span class=" "></span><div class="errorSourceBox errorSource-syntax focusRow subLogRow ">
<img src="chrome://firebug/content/blank.gif" title="Break On This Error" class="errorBreak a11yFocus "><a title="The resource from this URL is not text: http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1&_dc=1306850345271&callback=stcCallback1001" class="errorSource a11yFocus "><!DOCTYPE WMT_MS_Capabilities SYSTEM "...s/wms/1.1.1/WMS_MS_Capabilities.dtd">
</a></div><br>So, finally my question: what am i doing wrong here? Or do i need to configure something else?<br><br>Thanks in advance.<br>Kind regards,<br><br>Hugo<br clear="all"><br>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>
Campus de Campolide<br>1070-312 Lisboa<br>N 38°43'56.84", W 9°9'35.74"<br>