Hi!
I'm new to Restlet, I would like to use it in my GWT application to communicate
with a predefined REST service. First I wanted to retrieve a simple String with
it. I created a proxy interface:
public interface ConnectionStatusService extends ClientProxy
{
@Get("txt")
public void getVersion(Result<String> callback);
}
But when I'm using the generated proxy class:
ConnectionStatusService service = GWT.create(ConnectionStatusService.class);
it sends a request that accepts Accept application/x-java-serialized-object+gwt
according to Firebug, so the server returns HTTP 406 Not Acceptable of course..
:-( How could I make it work?
(For those who use stackoverflow too, here is the same question's link:
http://stackoverflow.com/questions/8833380/how-to-consume-text-plain-response-with-restlet-2-1-from-gwt-client)
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2908245