Hello everyone,

I've been working on a few simple OL apps on my development
environment where I have Geoserver installed. In this environment I
configure all layers with a "http://localhost:port/geoserver"; address.
Now I need to port these apps to a production server and hence must
change the address to something like "http://myserver/geoserver";. When
I do this, none of the WFS layers loads.

The OL code seems to be correct, otherwise I wouldn't be able to load
any WFS layer in the development environment. But Geoserver is able to
serve WMS layers, with an address like
"http://myserver/geoserver/wms";, it's only when I use addresses like
"http://myserver/geoserver/wfs"; that it doesn't answer back. After
checking and rechecking the WFS settings at Geoserver I can't find
anything that may be preventing it from answering.

Is there a way I can test the WFS service remotely? Sould I be
changing other code? Below goes an example of a layer that doesn't
load.

Thank you,

Luís

----

var borders = new OpenLayers.Layer.WFS(
     "Borders",
     "http://myserver/geoserver/wfs";,
     {typename: 'topp:states'},
      {
         typename: 'states2',
         featureNS: 'http://www.openplans.org/topp',
         extractAttributes: false
      }
);

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to