Hi Bruno,
In your case, you won’t use the GWT object serialization and won’t be able to use the JSON and XML extensions as intended. They are not supported (yet) by the Restlet GWT proxy generation mechanism. Instead, you can still use directly the ClientResource class and the JsonRepresentation class manually. Could you enter a RFE in Tigris issue tracker so we can fill this hole in the future? Even better, if you feel like contributing to this RFE that would be even better! Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ <http://www.noelios.com/> http://www.noelios.com De : Carle, Bruno [mailto:[email protected]] Envoyé : mercredi 29 décembre 2010 12:48 À : [email protected] Objet : (no subject) Hello, I am trying to run the Restlet GWT client against a Jersey Rest servlet, but all the requests fail and jersey returns Unsupported Media Type (415) This is probably because the requests are sent with this header: Content-Type: application/x-java-serialized-object+gwt; instead of application/json Please could you give me some hints about how to change the content type of the requests? Thanks in advance Bruno My config: ---------- using restlet-gwt-2.1snapshot these three jars are in the classpath: org.restlet.ext.json.jar org.restlet.ext.xml.jar org.restlet.jar These two lines are in GWT module file <inherits name="org.restlet.Restlet"/> <inherits name="org.restlet.JSON"/> The client proxy is also attached ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2694613

