SOAP based WebServices(top-down) strictly confirm to XSD and uses Databinding (JAXB) frameworks to convert XSD into java classes. Even Restfull uses Databinding(JAXB) frameworks to convert XSD into java classes. Looks both are same. How to draw a line between SOAP and RestFull WebServices ? Do we need some REST Frameworks for Restfull WebServices like SOAP Webservices frameworks like Axis2/Spring WS ?
REST is an architectural style, NOT an API, it is much more flexible than SOAP. Since it is a style, you do NOT need any toolkit to write a RESTful service.
REST attaches specific meaning to the HTML methods of GET, POST, DELETE, and PUT.
Hi William, I am still not clear. Why do we need REST frameworks like jersey ? (SOAP needs toolkit for top-down / bottom-up approaches etc... )
Few implementations use Databinding (JAXB) frameworks to convert XSD into java classes with REST. Why do we mix XSD (SOAP specific) with REST operations ?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Hi William, I am still not clear. Why do we need REST frameworks like jersey ?
My point is exactly that we do NOT need frameworks like Jersey. If you follow the REST architectural style for the use of HTTP methods you have in fact created a RESTful web service.
It is a fact of programming culture that some people just love to write "frameworks" toolkits like Jersey. These can be valuable for folks who like that sort of support with libraries and worked out examples, but are not essential.
If your RESTful service does not involve XML formatted resources, there is no need to think about JAXB or XSD.
You really should go read the Wikipedia articles I cited.