• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

REST vs SOAP

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I read that REST is another standard like SOAP, but is much easier to code. Could you please summarize the differences and when to which.

Thanks
 
author
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
REST is what you used to POST your comment on javaranch, and what you are using now to GET my response.

In web terms, SOAP is an protocol designed to be invisible to the web, you can't simply copy/paste a SOAP URL into an IM session or into a mashup.

Which is easier to program to depends on what tools you are using. In some environments, producing a WSDL file is a mouse click, and consuming that same WSDL file is another mouse click.

The downside is that such interfaces tend to be brittle, and often end up being inadvertently vendor specific -- due to the wide variety of options that WSDL supports, and the various subsets that each individual vendor choses to implement.

By contrast, coding methods like GET and POST are just about as easy in pretty much every programming language with the right toolkit; but they don't parse the datastream. What we have found is that using tools for parsing html or using XPATH does the job in most cases, and doesn't create inadvertent vendor lockin issues and keeps your code resilient from most data format changes.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Krishna Natarajan wrote:Hi,
I read that REST is another standard like SOAP, but is much easier to code. Could you please summarize the differences and when to which.

Thanks


The main advantages of REST web services are:

* Lightweight – not a lot of extra xml markup
* Human Readable Results
* Easy to build – no toolkits required

SOAP also has some advantages:

* Easy to consume – sometimes
* Rigid – type checking, adheres to a contract
* Development tools



via SOAP vs. REST
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic