I am new to restlet web service and i got to use restlet-rpc instead of gwt-rpc..I googled
around and found few sites like http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet.html and [http://wiki.restlet.org/docs_1.1/13-restlet/144-restlet.html] but nothing quite helped me.
Moreover org.reslet.jar of gwt http://www.restlet.org/downloads/stable does not support server methods(like ServerResource in restlet)!
A sample hello world with restlet-rpc in gwt, is what all i look for,so i understand the basics of restlet-rpc!Any help in regard with this would be appreciated!
Seems like you’re not sure what you need so why don’t you try with GWT’s RPC, and then GWT’s RequestBuilder + your server side code that returns JSON, and then move to Restlet.
RPC and REST are fundamentally different approaches of client-server communication, and you want to shoehorn one into another without a good reason.
UPDATE:
Using restlet doesn’t guarantee xss is not possible, and you can prevent xss with GWT RPC by escaping input before returning it back to the client. Have a look at SafeHtml for example.