<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Casper,<div><br></div><div>AJAX requests normally show up in the Console tab of Firebug, make you sure you have activated the option to show AJAX requests.</div><div><br></div><div>Without a request XML and response XML it's really difficult to help you.</div><div><br></div><div>Otherwise, send us the output of your DescribeFeatureType request, a common mistake is that the featureNS does not exactly match the namespace advertized on the WFS.</div><div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>--&nbsp;</div><div>Looking for flexible support on OpenLayers or GeoExt? Please check out <a href="http://www.osgis.nl/support.html">http://www.osgis.nl/support.html</a></div><div><br></div><div>Bart van den Eijnden</div><div>OSGIS</div><div><a href="mailto:bartvde@osgis.nl">bartvde@osgis.nl</a></div></div></div></span></div></span></div></span></span>
</div>
<br><div><div>On Jun 9, 2011, at 12:05 PM, Casper Span wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">A small followup... I've found out a few things in the meantime. For starters, I had a missing proxy. I've added this into apache now, so it forwards everything nicely from port 80 to port 8080 to geoserver.<br><br>
My layer had a few changes as well:<br><br>&nbsp;&nbsp;&nbsp; wfs = new OpenLayers.Layer.Vector("Editable Features", {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strategies: [new OpenLayers.Strategy.BBOX()],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; projection: new OpenLayers.Projection("EPSG:28992"),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protocol: new OpenLayers.Protocol.WFS({<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version: "1.1.0",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srsName: "EPSG:28992",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: "<a href="http://casp-geoserver/geoserver/wfs">http://casp-geoserver/geoserver/wfs</a>",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureNS :&nbsp; "<a href="http://casp-geoserver/">http://casp-geoserver/</a>",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureType: "locatiedossiers",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; geometryName: "geometry",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; schema: "<a href="http://casp-geoserver/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=gs:locatiedossiers">http://casp-geoserver/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;typename=gs:locatiedossiers</a>"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; })<br>&nbsp;&nbsp;&nbsp; }); <br><br>This is basically just the WFS Transactional sample from OL, with my server adres and layer in it. I have doublechecked all the url's, namespaces, etc. I really don't know what to check next. Firebug tries to get something from WFS "OPTIONS wfs", but the reponse is empty. That's the only WFS related line on the NET tab in FireBug. <br>
<br>I can serve the layer through WMS without any problems. The WMS is also served through the proxy, so that should work properly.<br><br>I'm currently using GeoServer 2.1 RC2, OL 2.10. This problem is the same for Firefox 4, Chrome 12 and IE8.<br>
<br>I really hope I'm missing just a small thing, because I've been at this problem for a few days already...<br><br>Regards,<br>Casper Span<br><br><br><div class="gmail_quote">On Thu, May 26, 2011 at 11:22 AM, Casper Span <span dir="ltr">&lt;<a href="mailto:info@spatially-oriented.com">info@spatially-oriented.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi list,<br><br>I know this question has been asked before (many times I guess), but somehow I just can't get this thing to work. Unfortunately, Google isn't my friend either.<br>
<br>So, I have this setup:<br>- Oracle Spatial database<br>
- Geoserver serving WFS and WMS and setup with a single layer<br>- OpenLayers<br><br>So nothing fancy there.<br><br>I created a layer using the samples and docs. It came down to this:<br>&nbsp; var locdos = new OpenLayers.Layer.Vector("Locatiedossiers", {<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strategies: [new OpenLayers.Strategy.BBOX()],<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; projection: new OpenLayers.Projection("EPSG:28992"),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protocol: new OpenLayers.Protocol.WFS({<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version: "1.1.0",<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: "<a href="http://roxit-geoserver:8080/geoserver/wfs" target="_blank">http://roxit-geoserver:8080/geoserver/wfs</a>", <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureType: "Locatiedossiers",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; geometryName: "GEOMETRIE",<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; featureNS: "<a href="http://www.roxit.nl/" target="_blank">http://www.roxit.nl</a>",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srsName: "EPSG:28992",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; schema: "<a href="http://roxit-geoserver:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;featuretype=Locatiedossiers" target="_blank">http://roxit-geoserver:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&amp;featuretype=Locatiedossiers</a>"<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }),<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<br><br>So I added that to my map and booted firefox. Nothing is being loaded. Looking at firebug: OL does a request to /wfs and gets an empty response. The geoserver setup works like a charm when I use it with, for example uDig and Gaia.<br>

<br>I've tried adding the prefix with the featureType, but removed that after reading a post from Bart vd Eijnden saying it should be removed. <br><br><br>I'm most likely missing something trivial, but I just can't find it. Any suggestions?<br>

<br><br>Regards,<br><font color="#888888">Casper Span<br>
</font></blockquote></div><br>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/openlayers-users<br></blockquote></div><br></div></body></html>