On Thursday, August 5, 2010, Febin T T <[email protected]> wrote:
>  <[email protected]>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 : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to