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.
stub will be do both i.e. generating xml request and parsing the response. stub itself may use JAXB to do that. And JAXB is one of the data mapping technology, there are other as well.
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.
Best wishes!
Thanks friend. I personally suggest RESTlet as it was real easy and project deadline is too short. But hey, i didnt heard about RESTEasy and will sure give it a shot.
Post by:autobot
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
a bit of art, as a gift, that will fit in a stocking