Wednesday, 22 May 2013

Web Services - An Introduction

What are web Services

In simple team Web service is re-usable business logic on internet can consume by another application which needs the same logic. Web Service is a web functionality (that contains/defines Web Methods) which is hosted over internet so that we can use it in multiple applications.

A Web Service is application logic accessible to programs via standard web protocols, Web method is part of the web service. Web Services is application logic which can be used in other for applications to communicate with each other in a platform and programming language-independent way. A web service is an interface of a software component which describes a collection of operations that can be accessed through XML messages.



 








Why Web Services?

  1. Its platform-independent and language-independent, since they use standard XML languages
  2. Exposing your API onto a network connecting different applications
  3. Connect existing software.
  4. Exposing the existing function on to network
  5. Business opportunity to grow your business
  6. Almost every type of business can benefit from Web services such as expediting software development, integrating applications and databases, and automating transactions with suppliers, partners, and clients.

How it works

Web Services operate on a service-based model. In this model, the web service resides on the web server. A client computer can request and consume this web service and terminate the service as and when desired.















Example

Share market with stock quote on web site is one of the command examples for web service. Pay-TV, we can build web sites that can generate revenue for each request a user sends (monthly subscription). Attach is a sample code where ItemCode is passed to webservice which will generate barcode.

Source Code ( Use file ==> Download option )















About Author
Hemal Fofaria works with Systems Plus and is working on Dot Net technology projects.He can be contacted at: hemal.f@spluspl.com

1 comment:

  1. Please find the link to download same source code. Use File --> Download option to download the code.

    https://docs.google.com/file/d/0B1j55C1e40jOdUpaMmZJOHNpemM/edit?usp=sharing

    ReplyDelete