<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><base href="x-msg://12/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">featureType should be without the prefix so just "points".<div><br></div><div>Depending on the OpenLayers version that you use you might need to set featureNS (not needed for 2.13 or later, maybe even 2.12 has the automatic detection, unsure).</div><div><br></div><div>Use something like Firebug / Chrome web inspector to track your XHR response.</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; "><div>-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br><div><div>On Aug 15, 2013, at 3:30 PM, <a href="mailto:andrea.alri90@gmail.com">andrea.alri90@gmail.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-family: 'Sans Serif'; "><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; ">Hi everybody, I am new in Openlayers world. I am writing my thesis in computer science about geospatial database.</div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; ">I want use a OpenLayers WFS that refers to this WFS (made using deegree) <a href="http://localhost:8080/services/WFSgeoDB">http://localhost:8080/services/WFSgeoDB</a>.</div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; ">This is what I wrote in my JSP:</div><p style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "> </p><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; "> var map = new OpenLayers.Map('map'); </span></div><p style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "> </p><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">  var WFSgeoDB=new OpenLayers.Layer.Vector("WFS", { </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">    strategies: [new OpenLayers.Strategy.BBOX()], </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">    protocol: new OpenLayers.Protocol.WFS({ </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">      version: "1.0.0", </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">      url: "<a href="http://localhost:8080/services/WFSgeoDB">http://localhost:8080/services/WFSgeoDB</a>", </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">      featureType: "app:points", </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">    }) </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">  });</span></div><p style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">  </span></p><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">  var wms = new OpenLayers.Layer.WMS ( </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">    "OpenLayers WMS", </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">    "<a href="http://vmap0.tiles.osgeo.org/wms/vmap0">http://vmap0.tiles.osgeo.org/wms/vmap0</a>", </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">    {layers: 'basic'} </span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">  );</span></div><p style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">  </span></p><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">  map.addLayers([wms, WFSgeoDB]);</span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: courier; font-size: 10pt; ">  map.zoomToMaxExtent();</span></div><p style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "> </p><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: 'dejavu sans'; font-size: 10pt; ">I can see the map but I can't see the data from my WFS (7 LineString and 7 Points from my database).</span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: 'dejavu sans'; font-size: 10pt; ">Where is my error? Is there something that I miss to view the data from my db? I need help.</span></div><p style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "> </p><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: 'dejavu sans'; font-size: 10pt; ">Thanks so much</span></div><div style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "><span style="font-family: 'dejavu sans'; font-size: 10pt; ">Andrea</span></div><p style="white-space: pre-wrap; margin: 0px; text-indent: 0px; "> </p>_______________________________________________<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">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br></div></blockquote></div><br></div></body></html>