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

Mark Hansen - REST?

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

What actually is REST? What relevance has it got to Java Web services and SOA?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

I guess, this URL will answer your question.

http://www.xfront.com/REST-Web-Services.html

This book covers REST way of implementing web services using available Java WS APIs. See the sample chapter made at available

http://www.phptr.com/bookstore/product.asp?isbn=0130449687&rl=1#info4

Let me know if you have more questions.


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Mark D. Hansen
author
Ranch Hand

Joined: May 29, 2007
Posts: 61
REST is an architectural style, as described in the link provided by Prabhu.

However, there is also a fundamental debate going on in the Web Services community under the headline of "REST vs. SOAP". In that context, "REST" doesn't really refer to the architectural style - it simply means using Plain Old XML (POX), together with HTTP, to communicate with a Web service, rather than SOAP and WSDL.

The topic of REST vs. SOAP is covered in Chapter 3 of my book.


Mark D. Hansen
Founder and President, AgileIT LLC http://agileitinc.com/
Author of "SOA Using Java Web Services" - http://soabook.com/
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
For a lighthearted take on the subject see:
How I Explained REST to My Wife
REST vs. WS-*: A Parable
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9622
    
    2

Really Interesting to know about REST. I have seen many books that simply don't talk about this. So your book looks something different.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Mark D. Hansen:
In that context, "REST" doesn't really refer to the architectural style - it simply means using Plain Old XML (POX), together with HTTP, to communicate with a Web service, rather than SOAP and WSDL.


Is XML-RPC equivalent to REST ?


Rahul Bhattacharjee
LinkedIn - Blog
Mark D. Hansen
author
Ranch Hand

Joined: May 29, 2007
Posts: 61
No, XML-RPC is a precursor to SOAP. It is a simple protocol for doing Remote Procedure Calls (RPC) using XML.

REST is an entire architectural style - not a protocol. It is not RPC oriented. However, many people incorrectly label as "REST" any type of XML over HTTP exchange that does not use SOAP.

The following comes from the Wikipedia article about REST:

REST strictly refers to a collection of architectural principles (described below). The term is also often used in a loose sense to describe any simple interface that transmits domain-specific data over HTTP without an additional messaging layer such as SOAP or session tracking via HTTP cookies. These two meanings can conflict as well as overlap. It is possible to design any large software system in accordance with Fielding's REST architectural style without using the HTTP protocol and without interacting with the world wide web. It is also possible to design simple XML+HTTP interfaces that do not conform to REST principles, and instead follow a Remote Procedure Call (RPC) model. The two different uses of the term REST cause some confusion in technical discussions.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Thanks Mark.You reply was very informative.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mark Hansen - REST?