[Users] GeoExt.data.WFSCapabilitiesStore is not loading

Eric Lemoine eric.lemoine at camptocamp.com
Fri Aug 6 06:23:09 CEST 2010


On Thursday, August 5, 2010, Febin T T <febin at sblgis.com> wrote:
>  <Users at geoext.org>hi users,

Hi


>
> my geoserver is working on port :8082
>
> my code
>
>         layerListStore = new GeoExt.data.WFSCapabilitiesStore({
>                 url: "/geoserver/ows?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities",
>                 protocolOptions: {version: "1.1.0"},
>         fields: ['name'],
>                 autoLoad: true
>             });
>
>
> is working fine
>
> but if I use
>
>                   url:
> "http://192.168.3.159:8082/geoserver/ows?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities"
>
> to get it from a remote server .... it is not working..
> (since my application is working from other server)
>
>
> I am getting the capabilities when I type it in browser's address bar
>
>
> why this happens?
> is there any cross domain issue?

Yes.

> any solution?

You need to use a proxy. A few links that can be useful to you:

<http://docs.openlayers.org/library/request.html>
<http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost>
<http://trac.mapfish.org/trac/mapfish/wiki/ConfigureProxy>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list