What is difference between rest and soap?



What is difference between rest and soap?..

Answer / Puneet Awasthi

REST (Representational State Transfer) and SOAP (Simple Object Access Protocol) are two common protocols used for web services communication.
REST is a lightweight, stateless, and resource-oriented approach that uses HTTP methods (GET, POST, PUT, DELETE) to perform operations on resources. It typically does not use XML or WSDL for service description and communication.
SOAP, on the other hand, is a more complex, stateful protocol that uses XML messages to describe both the service and the data being transferred. It often requires a WSDL file for service discovery and can support various transport layers (HTTP, SMTP, etc.).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?

1 Answers  


Where do we store our connection string in asp.net application?

1 Answers  


What’s the difference between asp.net web forms and asp.net mvc?

1 Answers  


What is custom events?

1 Answers  


What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?

1 Answers  


when to use webservice and when to use remotong diff between them

3 Answers  


What is difference Between Authentication and authorization?

1 Answers   MCN Solutions,


Difference between using directive vs using statement?

1 Answers  


What are the advantages and limitations of query string?

1 Answers  


Can we use the java script code in .Net Code behind?

5 Answers   eXensys,


You have been given the task of designing a web services to expose the data that is stored in a database on the server. In order to successfully build the web services, you need to import some namespaces. What is the minimum namespace you need to import? a) System.Web b) System.WebServices c) System.Web.Services d) System.Web.ServiceModel

2 Answers   Syntax Softtech,


What is x xss protection?

1 Answers  


Categories