[OpenLayers-Users] WFS layer - commit works,
save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!
christoph.ratke at gmx.net
Mon Mar 22 06:47:02 EDT 2010
you could also have a look at the geoserver log and therefor raise the
debug level if needed.
This could give you some more hints what is going wrong.
Ramón Boza schrieb:
> Can you use FireBug and post the Request generated to the server ?
> -----Mensaje original-----
> De: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] En
> nombre de paweluz
> Enviado el: lunes, 22 de marzo de 2010 11:19
> Para: users at openlayers.org
> Asunto: [OpenLayers-Users] WFS layer - commit works, save strategy from
> WFSProtocol does not work!!!! POST vs GET ?!?!
> I have a really strange problem. At the beginning I was thinking that it was
> Geoserver fault, or maybe Postgis but now I think this is Openlayers fault.
> At first I was using WFS layer, I had implemented insert, update, delete and
> modify functions and everything was was working just great. But since WFS
> layer is deprecated, I started using vector layer with WFSProtocol. And it
> does not work!!!
> With WFS layer I use something like this
> feature.state = OpenLayers.State.INSERT;
> In this case my data was successfully in the database.
> In Vector layer I used WFSProtocol. Now when I do :
> But I got response in the firebug.
> <?xml version="1.0" encoding="UTF-8"?>
> <ows:ExceptionReport version="1.0.0"
> <ows:Exception exceptionCode="InvalidParameterValue">
> <ows:ExceptionText>Error performing insert</ows:ExceptionText>
> Can anyone please explain to me this. How come WFS.commit() works but
> savestrategy does not? I know for sure that my code in openlayers is wright.
> You may see it in my previous topic:
> Maybe the reason is that WFS layer use just GET method, and Vector Layer
> (WFSProtocol) uses POST method... Can anyone please help me??
More information about the Users