Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Differentiate REST and web services, ROA or SOA?

user-image
Question added by Shahbaz Awan , M2M IoT Software Architect , Wadi Makkah
Date Posted: 2013/07/11

REST directly works over HTTP protocol to transfer data which can be in any format such XML, HTML, JSON, byte converted image, etc.. Restriction is HTTP protocol.

 

SOAP is data format protocol which says how data should be formatted. In SOAP web service, we are formatting data in SOAP format and communicating using protocol such TCP, HTTP, FTP, etc.. Restriction is SOAP format of input/output.

Bassem Zohdy
by Bassem Zohdy , Senior Software Architect , HelpAG

There are3 main differences:1-The architectural different which is impacting your design, REST used to provide CRUD functionality to specific resources but the traditional web-services you are providing methods, for ex.
if you want to provide booking service of hotel: using REST you are going to call Post method "Create" for resource /hotel/{hotelId}/books/ and send your details in body using traditional WS you are going to make function called Book and get the hotel and you details as parameters
2- REST using HTTP/HTTPS methods to represent CRUD functionality as: Create -> Post Retrieve -> Get Update -> Put Delete -> Delete while in WS you are using SOAP over HTTP you are not dealing with HTTP at all you just have to create the SOAP request which is contains header and body and send it using SOAP protocol3-data format or style as we mentioned in point2 you have to create SOAP request which is only can be XML while in REST you can use multiple formats the most used are JSON and XML, and you can change between these formats by HTTP header parameters

hossam saleh
by hossam saleh , صاحب الشركه , لا يوجد

http://akfpartners.com/techblog/2008/04/08/soa-vs-roa/

Waris Ali
by Waris Ali , Sr. Software Analyst , Iprocess Data

REST
  1. It support XML, JSON and ATOM data format.

    web services
  2. t is not open source but can be consumed by any client that understands xml.

Pankaj Gupta
by Pankaj Gupta , SA L2 , sapient

REST support only http and they are crawlers friendly when it comes to increase rating of your page and can be accessed like a normal url in which parameters can be passed same way as we pass query strings while in webservice we dont have these benefits and have to follow specific proxy creation method.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.