ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Differentiate REST and web services, ROA or SOA?

user-image
تم إضافة السؤال من قبل Shahbaz Awan , M2M IoT Software Architect , Wadi Makkah
تاريخ النشر: 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
من قبل Bassem Zohdy , Java Chief Architect , Crossover

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
من قبل hossam saleh , صاحب الشركه , لا يوجد

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

Waris Ali
من قبل 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
من قبل 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.

المزيد من الأسئلة المماثلة