I'm adding a layer to an OpenLayers Map which includes data from GeoServer retrieved using WFS. The layer is created like following:
var saveStrategy = new OpenLayers.Strategy.Save();
var wfs = new OpenLayers.Layer.Vector("Editable Features", {
strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
projection: new OpenLayers.Projection("EPSG:26713"),
protocol: new OpenLayers.Protocol.WFS({
version: "1.1.0",
url: "http://localhost/geodemo/geoserver/wfs",
featureType: "LayerName",
srsName: "EPSG:26713",
featureNS: "http://www.openplans.org/MyNS",
geometryName: "the_geom",
})
});
When sending WFS messages to GeoServer, the server could send errors (formatated as XML). How it is possible to be aware from these errors?
Thanks.