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

Attachment: ReportAsyncRestlet.java
Description: ReportAsyncRestlet.java

Reply via email to