Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mark Hansen - REST?

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What actually is REST? What relevance has it got to Java Web services and SOA?
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark D. Hansen
author
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a lighthearted take on the subject see:
How I Explained REST to My Wife
REST vs. WS-*: A Parable
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Mark D. Hansen
author
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark.You reply was very informative.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic