[Users] WMSCapabilities: needed a different proxy from OpenLayers one?

Andrés Maneiro amaneiro at icarto.es
Fri Feb 18 12:43:01 CET 2011


Hello there,

I'm going through the examples to get familiar with geoext and extJS. 
Particulary, I've been trying to test the two related to inspect 
capabilities from a WMS server:

  http://api.geoext.org/1.0/examples/wms-tree.html
  http://api.geoext.org/1.0/examples/wms-capabilities.html

Both examples run against a xml file which (I guess) is a xml reponse 
from a WMS server. I've tried to accomplish the same using directly a 
WMS server. Unfortunately, with no result. Here the code I'm playing with:

- javascript: http://pastebin.com/MysG8ZBJ
- html: http://pastebin.com/7JaBPrAP

I'm stuck at the proxy part. When I run the code above, I get this 
response:

XMLHttpRequest cannot load 
http://localhost:8080/geoserver/wms?_dc=1298028418553&service=WMS&request=GetCapabilities. 
Origin http://localhost is not allowed by Access-Control-Allow-Origin.

I'm running my html/js app with OpenLayers in localhost:80 and the WMS 
server (geoserver) is running at localhost:8080

For that, I have configured a proxy for OL which seems to run ok since 
I've executed some tests on OL with success. Seems that the same proxy 
is not working with geoext.

So, the question is: Do I need another proxy for geoext? Some pointers 
to that?

best,
amaneiro


More information about the Users mailing list