Define the term web service with example.
A web service is an application that operate over a network-typically, over the Internet. Most typically, a web service is an API that can be accessed over the Internet. The service is then implemented on a remote system that hosts the requested services.