aspose file tools*
The moose likes Web Services and the fly likes SOAP Vs RestFull Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP Vs RestFull" Watch "SOAP Vs RestFull" New topic
Author

SOAP Vs RestFull

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1382
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 ?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5
Consult the Web Services FAQ here at the ranch for more, but here are the high points

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.

See also the nice wikipedia summary.

SOAP is very specific messaging API, independent of HTTP and loaded with all sorts of security related extensions. Here is the wikipedia SOAP article.

Bill
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1382
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 ?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12823
    
    5


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.

Bill

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOAP Vs RestFull