What server are you using?

    var layer = new OpenLayers.Layer.Vector("Guybrush Threepwood", {
        strategies: [new OpenLayers.Strategy.BBOX()],
        projection: new OpenLayers.Projection("EPSG:4326"),
        protocol: new OpenLayers.Protocol.WFS({
            version: "1.1.0",
            srsName: "EPSG:4326",
            url: "http://localhost:2006/GetFeature.ashx";,
            featureType: "MonkeyIsland",
            schema:
"http://localhost:2006/GetFeature.ashx?service=MXP-WFS&request=GetSchema&schema=miwfs:MonkeyIsland";,
            featureNS: "http://www.opengis.net/wfs";,
            featurePrefix: "miwfs"
        })
    });


Replace the schema value for the correct Schema URL of your feature.. I'm
not sure at all about how you get the schema in your server as I'm use to
GeoServer only..! 

For example I'd have something like this as the schema:
http://localhost:2006/geoserver/wfs?service=wfs&version=1.1.0&request=DescribeFeatureType&typename=miwfs:MonkeyIsland

Hope helps you,

Gilberto Ramos

-----
"For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting life.
For God sent not his Son into the world to condemn the world; but that the
world through him might be saved.
He that believeth on him is not condemned: but he that believeth not is
condemned already, because he hath not believed in the name of the only
begotten Son of God." John 3:16-18
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Working-with-Openlayers-Layer-Vector-and-WFS-tp5301971p5302348.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to