Hi Thierry,
Thanks for the answer ! Finally (because I didn't find the solution) we
started on alternative way with GWT :
* we develop a kind of proxy/gateway with GWT/RPC which calls pure java
restlets (not GWT)
So rom gwt we call a single RPC class which implemnts the put/get/post/put
methods (by using also the genericity to customize dynamiccaly our RCP
service), and this RPC gateway calls directly the remote restlet code .
It is simpler (for us) and less verbose finally than using the gwt
implemntation of restlets.
regards
Xavier

2010/2/1 Thierry Boileau <[email protected]>

>  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=2443800

Reply via email to