On 16 sep, 18:14, walden <[EMAIL PROTECTED]> wrote: > Thomas, > > On Sep 16, 11:10 am, Thomas Broyer <[EMAIL PROTECTED]> wrote: > > > (I you ask me my opinion: GWT-RPC is not RESTful so I don't use it, > > but the hability to share a class between client and server code is > > appealing; I'm not using such a thing either though) > > How do you arrive at that opinion? > > You can use or not use GWT RPC for whatever reason you like. But when > you say you don't use GWT RPC because it's not RESTful, I think that > carries no real meaning other than general FUD. It would be better to > state the specific tradeoffs that don't work for you. I'm just > concerned that some might avoid a very useful technology for a very > questionable reason. Can you please shed some more light?
1. RPC: the "method" is in the request body, not as an HTTP method (not always possible though). 2. If I want a "collection resource" (GETting the resource returns me a representation of the "list") and individual "entry resources" (that I could GET, PUT and DELETE –using "method override" in older Safari–, and eventually POST for other needs...), I need 2 RemoteService classes, and then using the "EntryService" means changing the "service location" before each method call; this is not the way GWT-RPC has been thought, GWT-RPC isn't "resource-oriented", it's, well, RPC... 3. POST for everything, even for things that should have been GETs, PUTs or DELETEs; this makes HTTP caches unusable (which you might want, but not necessarily). etc. In brief: GWT-RPC is RPC (method calls), it's not "resource-oriented". It "tunnels" within HTTP requests, but it isn't HTTP. Well, it's the same as SOAP, without the bloated XML serialization and minus the extensibility. GWT-RPC is good for prototyping, because it's easy to set up; but it isn't "web-style", so it won't scale as well as "RESTful web services" (a book that I highly recommend, along with blog posts from Joe Gregorio). I guess generators could be used to make RESTful web services as easy as GWT-RPC (I didn't investigate yet, as our server-side language is... JavaScript!) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
