Answered by:
Web service

Question
-
User-539865851 posted
Hi can anyone tell me, what is the difference beetwen saop and rest web service. By giving some example ?
Thursday, April 25, 2013 4:33 AM
Answers
-
-
User-1000095884 posted
Hi,
You can check this provided by kushalrdalal to get the difference between soap and rest.
In summary, SOAP is a XML based messaging protocol and REST is not a protocol but an architectural style;
SOAP has a standard specification but there is none for REST, so that we can consume a soap service with "Add Service Reference" option, but it not work for restful service, you can WebChannelFactory<T> to create a client to talk to the service;
SOAP uses interfaces and named operations to expose business logic. REST uses (generally) URI and methods like (GET, PUT, POST, DELETE) to expose resources. Below are references which include with an example.
#A Simple Example of WCF Service(SOAP )
http://www.c-sharpcorner.com/UploadFile/mahakgupta/a-simple-example-of-wcf-service/
#Create RESTful WCF Service API: Step By Step Guide (REST)
http://www.codeproject.com/Articles/105273/Create-RESTful-WCF-Service-API-Step-By-Step-Guide
Best Regards.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, April 25, 2013 11:12 PM
All replies
-
User166892907 posted
Take a look at this :
http://www.ajaxonomy.com/2008/xml/web-services-part-1-soap-vs-rest
Thursday, April 25, 2013 4:42 AM -
-
User-1000095884 posted
Hi,
You can check this provided by kushalrdalal to get the difference between soap and rest.
In summary, SOAP is a XML based messaging protocol and REST is not a protocol but an architectural style;
SOAP has a standard specification but there is none for REST, so that we can consume a soap service with "Add Service Reference" option, but it not work for restful service, you can WebChannelFactory<T> to create a client to talk to the service;
SOAP uses interfaces and named operations to expose business logic. REST uses (generally) URI and methods like (GET, PUT, POST, DELETE) to expose resources. Below are references which include with an example.
#A Simple Example of WCF Service(SOAP )
http://www.c-sharpcorner.com/UploadFile/mahakgupta/a-simple-example-of-wcf-service/
#Create RESTful WCF Service API: Step By Step Guide (REST)
http://www.codeproject.com/Articles/105273/Create-RESTful-WCF-Service-API-Step-By-Step-Guide
Best Regards.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, April 25, 2013 11:12 PM