Hello
I've a problem to update an appointment.
The part of the code :
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
And the result
Any ideas? And of course...thank's in advance 
Elias
I've a problem to update an appointment.
The part of the code :
//-------------------------------------------------------------------------
Code:
JSONObject jobj = new JSONObject();
jobj.put("id", 5);
// only in case 1
jobj.put("session", "9c262715217e4a89a039324e2b58be64");
//
jobj.put("timestamp", 1309341706969);
jobj.put("folder", 209);
jobj.put("note","Updated note");
StringEntity entity = new StringEntity(jobj.toString());
HttpPut put = new HttpPut(oxSession.getCommandAndQuery(false));
put.setEntity(entity);
HttpResponse response = this.httpClient.execute(put);
HttpEntity resEntity = response.getEntity();
String result = EntityUtils.toString(resEntity);
....
parse results.....
And the result
Code:
Case 1 :
URI
http://OXSERVER/ajax/calendar?action=update
Params in PUT request
{"folder":209,"timestamp":1309341706969,"id":5,"session":"9c262715217e4a89a039324e2b58be64"}
Result :
{"code":"SES-0201","error_id":"2000700810-158","category":8,"error_params":[],"error":"The session parameter is missing."}
Code:
Case 2 :
URI
http://OXSERVER/ajax/calendar?action=update&session=5d97857987b54a4287818db97745f68e
Params in PUT request
{"folder":209,"timestamp":1309341706969,"id":5}
Result :
{"code":"SVL-0002","error_id":"2000700810-147","category":8,"error_params":["id"],"error":"Missing the following request parameter: %s"}

Elias
Comment