[OpenLayers-Users] Problem with wfs examples

Diego Ochoa Tocachi diego.ochoat at gmail.com
Sat Jan 3 21:31:03 EST 2009


2008/12/29 Christopher Schmidt <crschmidt at metacarta.com>

> On Mon, Dec 29, 2008 at 07:41:45PM +0100, Bart van den Eijnden (OSGIS)
> wrote:
> > Hi,
> >
> > see:
> >
> > http://faq.openlayers.org/proxyhost/all/
>
> Or even more directly:
>
>
> http://faq.openlayers.org/wfs/why-isnt-wfs-working-on-my-local-checkout-of-openlayers/
>
> > Best regards,
> > Bart
> >
> > Diego Ochoa Tocachi wrote:
> > > Hi list,
> > >
> > > I have this problem when I run the examples locally:
> > >
> > > -----
> > > (wfs-reprojection.html)
> > >
> > > uncaught exception: Access to restricted URI denied
> (NS_ERROR_DOM_BAD_URI)
> > > [Break on this error] this._object.open(sMethod, sUrl, bAsync, sUser,
> > > sPassword);
> > >
> > > XMLHttpRequest.js (ligne 177)
> > > -----
> > >
> > > The same error happens when I try to access other wfs server using
> > > gwt-openlayers
> > >
> > > I'm trying to create WFS java classes as WMS java classes from that
> > > package:
> > >
> > >         WFSLayerParams wfsLayerParams = new WFSLayerParams();
> > >         wfsLayerParams.setProjection("EPSG:4326");
> > >
> > >         WFSParams wfsParams = new WFSParams();
> > >         wfsParams.setTypeName("idm:islas");
> > >
> > >         wfsLayer = new WFS("WMS Layer",
> > > "http://www.geoportaligm.gov.ec/nacional/wfs", wfsParams,
> wfsLayerParams);
> > >
> > > I don't know if that's ok, I'm newbie in openlayers :)
> > >
> > >
> > > --
> > > Diego Ochoa - darkbalder
> > > email: diego.ochoat at gmail.com <mailto:diego.ochoat at gmail.com>
> > > Luis Pasteur 2-30 y Copernico
> > > Telf: +593 7 2451 388
> > > Fax: +593 7 2451 388
> > > Movil: 593 95359807
> > > Cuenca - Ecuador
> > >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users at openlayers.org
> > > http://openlayers.org/mailman/listinfo/users
> > >
> >
> >
> > --
> > Bart van den Eijnden
> > OSGIS, Open Source GIS
> > bartvde at osgis.nl
> > http://www.osgis.nl
> >
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
>
> --
> Christopher Schmidt
> MetaCarta



Thanks for response, I solved my problem using this proxy:
http://trac.openlayers.org/browser/sandbox/august/openlayers/openlayers-2.6/lib/OpenLayers/Util/proxy.jsp?rev=7801

very useful!


-- 
Diego Ochoa - darkbalder
email: diego.ochoat at gmail.com
Luis Pasteur 2-30 y Copernico
Telf: +593 7 2451 388
Fax: +593 7 2451 388
Movil: 593 95359807
Cuenca - Ecuador
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090103/7ca7aeea/attachment.html


More information about the Users mailing list