Sun gives Java a REST



Email    print   
October 13, 2008 —  (Page 1 of 2)
The JCP is hoping to give SOAP a REST. Today, Sun Microsystems will release JAR files for the JAX-RS, the new Java API for RESTful Web services. REST (Representational State Transfer) substitutes the traditional SOAP practices in favor of a natively Web-based solution by encoding information directly into URLs and allowing the HTTP protocol to do much of the heavy lifting.

Dr. Marc J. Hadley, a senior staff engineer in the office of the CTO at Sun, was co-spec lead on JSR 311. He's been working with Web services since their inception and was also co-lead on the JAX-WS  specification, JSR 224. After years of experience with SOAP, Hadley said he now prefers REST.

"I think it's simpler,” said Hadley. “There's so much in HTTP that is still to be fully exploited. Without going to SOAP, there's so much you can already do that people don't realize. I can see there are cases where you can step up to SOAP. But JAX-RS is of the Web, whereas JAX-WS sort of inherits that SOAP thing where the Web is just a transport. JAX-WS is over the Web, rather of the Web.”

Hadley learned a great deal about the capabilities of HTTP during his time on JAX-RS. “One of the biggest thing is the whole precondition processing,” said Hadley, citing what he learned about HTTP. “It solves lots of problems, like lost updates. There's a lot of depth there that you don't realize when you first start working with HTTP. There's also a whole bunch there for a bunch of standard patterns for the Web, like creating a resource. You don't have to make a new method to do that, it's already baked into the protocol."

JAX-RS is built specifically to make the design process for RESTful Web services simple. And because of REST's new and simplistic design, Hadley said that this was an easier API to write than previous Java Web services APIs.

“We didn't really have a lot of baggage to bring along," said Hadley. "In JAX-WS, we had the JAX-RPC legacy, and for a long time JAX-WS was going to be JAX-RPC 2. That complicated things a lot. In JAX-RS, we didn't really need to do much about content mapping. We didn't have to bake in the things in SOAP where you serialize the messages. A final thing is that there's no real description side to JAX-RS, although we've implemented something. We didn't have to do all the mapping from WSDL."



Related Search Term(s): Java, REST, Sun

Pages 1 2 


Share this link: http://sdt.bz/32959
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
Letters to the Editor: Sun gives REST, SOAP choice
A reader takes issue with a headline on our story about Sun working with REST along with SOAP, while others weigh in on rewriting Java code in C and solving impedance mismatches Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb