What is difference between web api and web services?



What is difference between web api and web services?..

Answer / Rupesh Chouksey

Web API and Web Services both allow developers to create RESTful APIs, but there are some key differences:

1. Technology: Web Services use SOAP (Simple Object Access Protocol) and WSDL (Web Service Description Language), while Web APIs use HTTP methods like GET, POST, PUT, and DELETE over JSON or XML.
2. Implementation: Web Services need to be implemented using languages such as C# with ASMX, whereas Web APIs can be created using C#, F#, VB.NET, or any .NET language that targets the .NET Framework 4.5 or later versions.
3. Standards Compliance: Web Services strictly adhere to WS-* standards for interoperability, while Web APIs prioritize simplicity and performance over strict standards compliance.
4. Simplicity: Web API has a simpler architecture than Web Services, making it easier to build RESTful APIs.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

How does asp.net work?

1 Answers  


Where is asp.net session stored?

1 Answers  


how to increase performance of web site? if there is a page with high load. the content is high then what should we do to increase performance?

3 Answers   Emphasis, Mphasis, TCS,


Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc

1 Answers  


What ASP.NET object encapsulates the state of the client and the browser? a) The Session object b) The Application object c) The Response object d) The Request object e) The Server object

7 Answers   Bunzl Vending, Syntax Softtech,


What is asp.net used for?

1 Answers  


True or False: To test a Web service you must create a windows application or Web application to consume this service?

1 Answers  


WHT IS DIFFERENCES BETWEEN HTML CONTROLS AND SERVER CONTROLS.

11 Answers   HCL, Microsoft,


when is the role performed by IIS sever when ever a request send from browser

0 Answers  


From which base class all web forms are inherited?

1 Answers  


How many time you can fill dataset in asp.net?

3 Answers   Syntel, Wipro,


What is data caching?

1 Answers  


Categories