Hi Andrés,<br><br>Not sure what's hapenning but for sure Openlayers proxy should work. Are your configurations of the proxy correct (you must include localhost:8080 in your allowed hosts)?<br><br>Cheers,<br>Hugo<br><br>
<div class="gmail_quote">2011/2/18 Andrés Maneiro <span dir="ltr"><<a href="mailto:amaneiro@icarto.es">amaneiro@icarto.es</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello there,<br>
<br>
I'm going through the examples to get familiar with geoext and extJS.<br>
Particulary, I've been trying to test the two related to inspect<br>
capabilities from a WMS server:<br>
<br>
<a href="http://api.geoext.org/1.0/examples/wms-tree.html" target="_blank">http://api.geoext.org/1.0/examples/wms-tree.html</a><br>
<a href="http://api.geoext.org/1.0/examples/wms-capabilities.html" target="_blank">http://api.geoext.org/1.0/examples/wms-capabilities.html</a><br>
<br>
Both examples run against a xml file which (I guess) is a xml reponse<br>
from a WMS server. I've tried to accomplish the same using directly a<br>
WMS server. Unfortunately, with no result. Here the code I'm playing with:<br>
<br>
- javascript: <a href="http://pastebin.com/MysG8ZBJ" target="_blank">http://pastebin.com/MysG8ZBJ</a><br>
- html: <a href="http://pastebin.com/7JaBPrAP" target="_blank">http://pastebin.com/7JaBPrAP</a><br>
<br>
I'm stuck at the proxy part. When I run the code above, I get this<br>
response:<br>
<br>
XMLHttpRequest cannot load<br>
<a href="http://localhost:8080/geoserver/wms?_dc=1298028418553&service=WMS&request=GetCapabilities" target="_blank">http://localhost:8080/geoserver/wms?_dc=1298028418553&service=WMS&request=GetCapabilities</a>.<br>
Origin <a href="http://localhost" target="_blank">http://localhost</a> is not allowed by Access-Control-Allow-Origin.<br>
<br>
I'm running my html/js app with OpenLayers in localhost:80 and the WMS<br>
server (geoserver) is running at localhost:8080<br>
<br>
For that, I have configured a proxy for OL which seems to run ok since<br>
I've executed some tests on OL with success. Seems that the same proxy<br>
is not working with geoext.<br>
<br>
So, the question is: Do I need another proxy for geoext? Some pointers<br>
to that?<br>
<br>
best,<br>
amaneiro<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><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>