This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
You can very well do it in client code. And your understanding about service class or generally we call them stub is correct. They are used mainly to automatically generate request xml based on the parameters you pass.
Rajkumar balakrishnan wrote:Whether i use RESTlet or CXF? Its a REST based Web Service.
Personally, I would use CXF if I were deploying to a container, like Tomcat, and RESTlet if I were developing a stand-alone server.
However, RESTlet services can also be deployed to a container, so in the end it may be a question of personal preferences.
JBoss RESTEasy has a client API that is supposed to make it possible to develop clients of RESTful web services in a manner similar to developing RESTful web services with JAX-RS, that is by using annotations.