Hi, what does log from geoserver say? Did you tried it with version 1.0.0 or another strategy?
best regards Sarah ________________________________ Hello my friends, I try to add a vector layer with WFS protocol into my map but it's failed. It's so crazy with 2 long days My js code is below: _______________________________________________________ OpenLayers.ProxyHost = "./Proxy.aspx?param="; OpenLayers.Feature.Vector.style['default']['strokeWidth'] = '1'; saveStrategy = new OpenLayers.Strategy.Save({ auto: false }); saveStrategy.events.register('success', null, function() { alert("saveSuccess"); }); saveStrategy.events.register('fail', null, function() { alert("save failed"); }); wfsLayer = new OpenLayers.Layer.Vector("Editing Layer", { strategies: [ new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection("EPSG:4326"), protocol: new OpenLayers.Protocol.WFS({ url: "http://localhost:8080/geoserver/wfs", featureType: "STREETDB.SDE.POI", featureNS: "http://geoserver.sf.net", featurePrefix: "sde", srsName: "EPSG:4326", version: "1.1.0", geometryName: "Shape", schema: "http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=sde:STREETDB.SDE.POI" }) }); map.addLayer(wfsLayer); _______________________________________________________ By tracking Proxy, I found that at the function map.addLayer(wfsLayer) not post any information to geoserver. After all other (WMS )layers is removed then I tried to pan the map with just wfsLayer on it, I found It requests to geoserver but url is "http://localhost:8080/geoserver/wfs" without any parameters Then I tried to inspect map element and this is html: _______________________________________________________ _______________________________________________________ I hope you will please to help me in this problem. Thank you very much for your time ! ________________________________ View this message in context: Vecor layer with WFS Protocol now show feature Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users