Hi,<br><br>I think you are running against a problem I had as well: the lack of a proxy / proxy script.<br>You can only get WFS data again the same domain. (and thus, the same port as well)<br><br>So if you're MapServer isn't running on the same domain as your OL page, you will need a forwarder from the OL code to the Mapserver.<br>
<br>Something like <a href="http://yourwebsite.com/mapserver">http://yourwebsite.com/mapserver</a> --> <a href="http://yourmapserver.com/mapserver">http://yourmapserver.com/mapserver</a><br>or <a href="http://yourwebsite.com:8080/mapserver">http://yourwebsite.com:8080/mapserver</a> --> <a href="http://yourwebsite.com/mapserver">http://yourwebsite.com/mapserver</a><br>
<br>Hope this helps!<br><br>regards,<br>Casper<br><br><div class="gmail_quote">On Wed, Jun 22, 2011 at 3:48 PM, sulu <span dir="ltr"><<a href="mailto:andreas.siegel@vorarlberg.at">andreas.siegel@vorarlberg.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi.<br>
<br>
Yes, i know this topic is far from new but i'm stuck getting my<br>
OL-WFS-Test-Client to work.<br>
The basic idea it to get the background from a Mapserver-WMS-Service and<br>
plot on this some vector-data from a WFS-Layer (also provided by mapserver).<br>
<br>
WMS works pretty well but WFS won`t.<br>
<br>
Before i flood this post with code-samples of my mapfiles and/or the<br>
OL-HTML-document i would like to ask if there is a walkthrough where it is<br>
shown how to code a correct mapfile and the corresponding OL-Code.<br>
<br>
Or if one could provide me with a working wfs-mapfile and a matching OL-Code<br>
i would be very grateful.<br>
<br>
Thanks in advance<br>
Andy<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Can-t-get-WFS-to-work-tp6504309p6504309.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Can-t-get-WFS-to-work-tp6504309p6504309.html</a><br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</font></blockquote></div><br>