A web service has the following characteristics:
- It communicates using open protocols like HTTP
- Processes XML messages framed using SOAP
- May be described using WSDL
- Can be discovered using UDDI
Any application which is supposed to reach a wide customer base should be written as a web service as opposed to customized applications for specific customers.
For example services which help in stock trading by providing analysis of market trends could best be implemented as a web service. The reasons are
- Such a web service would be easily discovered by potential customers when they need it.
- It will require minimal setup on the client machines
- The updates to the system will be automatically available to all its consumers without any need to deploy the updates on their machines.