Hi Xavier,

after having a look at the code,the problem is that there is no 
converter that is able to convert your object into a Json representation.
The XStream extension provides such automatic converter, unfortunately 
this extension is not compatible with the GWT edition.

In terms of automatic serialization/deserialization, you can have a look 
at this sample application which illustrates the GWT serialization: 
http://wiki.restlet.org/docs_2.0/303-restlet.html
Otherwise, you can provide your own Converter (subclass of 
ConverterHelper) and register it:
  - in jse, jee and gae editions, add a 
META-INF/service/org.restlet.engine.converter.ConverterHelper file which 
contains the full name of your converter (see the code of some 
extensions such as json, for example)
  - in gwt, and android, register the converter by hand : 
Engine#getRegisteredConverters().add(your converter);

I hope this will help you.
Best regards,
THierry Boileau


> Hi,
> I'm encountering a problem with json when transmittting a jsonized 
> object from gwt to the restlet server...  My "Put" method receives a 
> null object... I've attached the file to this email...
> regards
> Xavier
> ps : the example is splitted in two ecliose projects, one for the 
> client , one for the server.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2443791

Reply via email to