[OpenLayers-Users] WFS layer - commit works, save strategy from WFSProtocol does not work!!!! POST vs GET ?!?!

Ramón Boza rboza at sitep.com
Mon Mar 22 06:27:33 EDT 2010


Hello,

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 ?!?!


Hi!
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;
mylayes.commit();

In this case my data was successfully in the database.

In Vector layer I used WFSProtocol. Now when I do :
saveStrategy.save();

But I got response in the firebug.
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/ows
http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ows="http://www.opengis.net/ows">
  <ows:Exception exceptionCode="InvalidParameterValue">
    <ows:ExceptionText>Error performing insert</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

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: 
http://n2.nabble.com/SaveStrategy-does-not-work-WFSProtocol-with-Vector-Laye
r-PROBLEM-WITH-POSTGIS-td4762666.html#a4762666

Maybe the reason is that WFS layer use just GET method, and Vector Layer
(WFSProtocol) uses POST method... Can anyone please help me??

Regards,
Poul





-- 
View this message in context:
http://n2.nabble.com/WFS-layer-commit-works-save-strategy-from-WFSProtocol-d
oes-not-work-POST-vs-GET-tp4776941p4776941.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users

Se certificó que el correo entrante no contiene virus.
Comprobada por AVG - www.avg.es 
Versión: 9.0.791 / Base de datos de virus: 271.1.1/2755 - Fecha de la
versión: 03/21/10 20:33:00





More information about the Users mailing list