[Users] GeoExt.data.WFSCapabilitiesStore: cross domain

Cédric Moullet cedric.moullet at camptocamp.com
Wed Oct 21 23:59:27 CEST 2009


Thanks for these clarifications.
So this means that the only way to access WMS servers on other domains is to
create a server proxy ? Or do you see a way to do that only with GeoExt ?
Thanks.
Cédric


On Wed, Oct 21, 2009 at 9:26 PM, Eric Lemoine
<eric.lemoine at camptocamp.com>wrote:

> 2009/10/21 Andreas Hocevar <ahocevar at opengeo.org>:
> > Cédric Moullet wrote:
> >> Hi,
> >> In GeoExt.data.WFSCapabilitiesStore, the Ext.data.HttpProxy is used.
> >> Is there any reason why Ext.data.ScriptTagProxy is not used ?
> >
> > Yes, there is. XML in a script tag would get you nothing but a script
> > execution error.
> >
> >> This would avoid the cross domain problem.
> >
> > But only if the response from the server was executable JavaScript.
>
> yes. Cédric was mentioning geonames to me. In the case of geonames you
> can provide a "callback" parameter in the request (e.g.
> &callback=myhandler), in that case the response from geonames looks
> like this : "myhandler({"totalResultsCount":23,"geonames":[{"fcl":"P",
> ....]});". So if you use a ScriptProxy that response is evaluated by
> the javascript engine, and myhandler gets executed.
>
> Hope this clarifies it,
>
> --
> 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
>



-- 
CTO Geospatial Camptocamp SA
Cédric Moullet
PSE A
CH-1015 Lausanne
www.camptocamp.com  / www.mapfish.org / twitter.com/cedricmoullet /
mapfishblog.blogspot.com/

+41 79 759 69 83 (mobile)
+41 21 619 10 21 (direct)
+41 21 619 10 10 (centrale)
+41 21 619 10 00 (fax)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20091021/cc497fca/attachment.htm 


More information about the Users mailing list