A web service is a software made available on internet and uses XML Messaging system. XML is useful to encode all communications between web services. Web services hence does not depend on any one operating system or programming language. i.e. it can be used with multiple platforms.
Web services are consists of programs, objects, messages or documents. These are open protocols and standards used for exchanging data between applications or systems. Software applications written in various programming languages and running on various platforms can use web services to exchange data over computer networks with the help of Internet in a manner similar to inter-process communication on a single computer.
Web Services Mainly takes help of following components
1. XML for tagging the data
2. SOAP for transferring the data
3. WSDL for availability of services.
Benefits Of web services:
a. Using the existing function on network:
The web services are accessed by HTTP means can be activated with the help of HTTP. Also it avails the code to be operated on network. When the code is availed on network other applications can use the code.
Web services communicate with different applications and share data with each other i.e. Different platform languages can communicate with help of web services.
c. Use Standardized protocols:
Web services use standard protocols which are accepted and accepted by Industries.
d.Lower communication costs:
Web services use SOAP for communication, so it can work on low cost internet for applying web services.
e.Web services are XML based:
XML eliminates any networking, operating system, or platform binding so Web services communicate directly and hence faster.
f.Web Services are loosely coupled:
Web services are not directly interfacing with user. Hence any change in web service does not affect user while using websites.
e.Web Services have ability to be Synchronous or Asynchronous:
In synchronous invocations, the client blocks and waits for the service to complete its operation before continuing. Asynchronous operations allow a client to invoke a service and then execute other functions.
g.Web services helps Remote Procedure Calls:
Web services allows to follow remote procedures and functions with help of XML based protocol. Remote procedures expose input and output parameters that a web service must support.
h.Web services helps in Document Exchange:
Web services support the transparent exchange of documents to facilitate business integration