[Users] Basic WMSCapabilitiesStore question

Eric Lemoine eric.lemoine at camptocamp.com
Sat Nov 20 10:19:30 CET 2010

On Friday, November 19, 2010, Jason Woolard <Jason.Woolard at noaa.gov> wrote:
> hi all,
> I saw a few posts in the archives related to this but I'm still unclear
> about how get it working. Using the wms-capabilities I'm able generate a
> grid of wms capabilities using an xml document saved locally:
>   store = new GeoExt.data.WMSCapabilitiesStore({
>          url: 'WMSServer.xml',
>          autoLoad: true
>      });
> But I really want to retrieve a document from an external server.
> Something like
> store = new GeoExt.data.WMSCapabilitiesStore({
>          url: 'http://www.someWMSsomewhere......',
>          autoLoad: true
>      });
> A post in the archives points to the same origin policy as the reason
> for this and says a scripting proxy is needed but then I saw something
> else that suggested I might not need one. Is that the issue here?

Most probably. If your web page isn't served from www.someWMSsomewhere
then you'll face the Same Origin Policy issue and need a proxy.

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

More information about the Users mailing list