>
> I posted a much longer message yesterday, but I can't find it on this
> list. I apologize if this shows up as a duplicate.
>
> Is there a way to easily use a REST backend with GWT? I tried GWT-REST
> [1]. It works, but it seems to be centered towards Rails (I'm using
> Grails) and it suffers from the SOP issue [2].
The SOP issue is a brows security thing and not a GWT issue. Any
attempt to initiate an XMLHTTPReaquest from a browser will be bound by
SOP.
> JSONRequest [3] looks promising for cross-domain support, but I can't
> get it to work either. The provided examples work, but not my simple
> hello world that returns:
>
> {"response":"Hello World!"}
you would need to bind a callback to the global (window) scope.
> Also, the example implementation only has GET support, not PUT, DELETE
> or POST. I can post my REST backend on the public internet if anyone
> is interested in seeing the issues I'm having.
This is due to the way cross origin requests work. you insert a script
tag that fetches the data, this is necessarily a GET request.
There does seem to be a market for an easy cross origin way to make
requests, but that does require some coupling of client/server code.
-jason
--
Jim Freeze