Why do we need Web service?

Why do we need to use Web service?


We should use web services as it comes with various advantages listed below

Re-usability


Once we develop some business logic,we can make it reuse for other applications

Example:

If 10 different applications requires to use our logic

We can expose our logic over a network as a web service

So all the 10 different application can access it from the network.

Interoperability


It provides the freedom for a developers to choose whatever the technology they want to use for development.

Web services uses a set of standards and protocols and enable us to achieve interoperability.

Hence applications developed in Java,Mainframe,Ruby or any other technology can call the web service and use it.


Loosely coupled


Web service exist independent of the other parts of the application that uses it.

So any changes to the application can be made without affecting the web service.

Deployability


It is very easy to deploy the web application as they are deployed over standard internet technologies.

Because of which, web services can be deployed even on the servers which are running firewall.

About the Author

Karibasappa G C (KB)
Founder of javainsimpleway.com
I love Java and open source technologies and very much passionate about software development.
I like to share my knowledge with others especially on technology 🙂
I have given all the examples as simple as possible to understand for the beginners.
All the code posted on my blog is developed,compiled and tested in my development environment.
If you find any mistakes or bugs, Please drop an email to kb.knowledge.sharing@gmail.com

Connect with me on Facebook for more updates

Share this article on