• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

basic understanding around SOAP vs REST

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am new to web services and trying to wrap my head around these two types.
I understand that SOAP is protocol based where as REST is an architectural style. SOAp uses XML for its envelope and REST can use XML and JSON's

My confusion/ gray area:

like in SOAP, we can view all the available web methods and there required parameters (to be passed) that are available using the ?WSDL (putting it at the end of the web service URL ). is there a similar way for REST web services.

if i want to see all the web services methods available under a service URL for RESTFUL services what should i be doing ?

another question: I was able to test the some of the web-services in soap using SoapUI however if i need to verify or test RestFul web-services what tool am i suppose to be using ?

any help in making this easier for me to understand is highly appreciated.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See numbered notes:

alex russo wrote:I am new to web services and trying to wrap my head around these two types.
I understand that SOAP is protocol based where as REST is an architectural style. SOAp uses XML for its envelope and REST can use XML and JSON's (1)

My confusion/ gray area:

like in SOAP, we can view all the available web methods and there required parameters (to be passed) that are available using the ?WSDL (putting it at the end of the web service URL ). is there a similar way for REST web services. (2)

if i want to see all the web services methods available under a service URL for RESTFUL services what should i be doing ? (3)

another question: I was able to test the some of the web-services in soap using SoapUI however if i need to verify or test RestFul web-services what tool am i suppose to be using ?(4)

any help in making this easier for me to understand is highly appreciated.



1) REST has no limits on the type of resource served - could be anything = depends on the design of the system.
2) WADL is an attempt to create something like WSDL for REST but I don't think it is used much. A text description and example code are the best way to communicate what your RESTful service provides.
3) It is important to remember that REST has strict guidelines for what services HTTP methods address. See the wikipedia article or the many discussions in the ranch FAQ. It is up to the service provider to document functions.

SOAPui is only moderately useful since a RESTful service can return any type of resource, but if you are sticking to text like xml or json, sure. Pay particular attention to the request and response headers and HTTP methods.

Bill

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody explain what are the significance between REST and SOAP and in which scenario we should use which service?

 
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

MeghnaN Shah wrote:Can anybody explain what are the significance between REST and SOAP and in which scenario we should use which service?


See that link in the third item of the post before yours ? Click it.
 
    Bookmark Topic Watch Topic
  • New Topic