Hi,
I have build a simple webapp with ROO, and added in JSON support. POST, GET and DELETE work fine, however any PUT requests I make are acknowledged with a 200 OK message, and then nothing happens - see below:
The intention is to update the regexDef field, however although I'm getting an http 200 OK message from the server, the application is not updating the object as required, as is shown in the return - regexDef is still null.Code:**curl -i -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -d '{regexDef:"test99"}' http://localhost:8080/emdr/valuedomains/55 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: application/json;charset=utf-8 Content-Length: 82 Date: Mon, 19 Nov 2012 17:35:44 GMT {"datatype":"test22","id":55,"regexDef":null,"unitOfMeasure":"test99","version":0}MacBook-Pro:bin$**
Being new to ROO, and since all the JSON code is auto-generated I'm not sure exactly where to look in the generated files, so any help would be much appreciated.
Thanks
David


Reply With Quote
