In technology field the services are the written program that is used to serve the specific requirement like services can be used for payment service or for CRUD operation in the database etc.
these services is consumed by the client. client can be of any type like a window client or web based client. These services can be exist on different machine and the client can exist on different machine.
client is nothing but the web application or window application that consumed the services.
these services are the written program that always return some value that used by the client.
To consume the webservices we use the Proxy class through which we can access the methods that implemented in the services.
In .net we have the different technology for services development like Enterprise services, Dot net Remoting, web services and the latest one WCF.
Different service technology have different data transfer format and required different type of client like for Eg. dot net Remoting technology transfer the data in binary format and use tcp protocol and this services can be consumed by only dot net client wheres the web services transfer the data in xml format over the http protocol so these web services can be consumed by any type of client.
the advantage of web services is that these are interoperable services.
every services has the basic structure called as ABC A- addresss, B- Binding , C- contract
Address- its contains the complete address where the service will be available for consuming this service we use this address at the client side.
Binding- its tell the protocol that will be used for exchanging the metadata and data.
Contract- its tell that which class will be available for the use at the client.
before using these services we need to host these services there are different type of hosting available - console based hosting , windows based hosting ,windows service based hosting, IIS hosting
after hosting this services we can only use these services in our application.
if any one find the mistake please comment and improve it. and for more deeper of webservices use the below link.
http://en.wikipedia.org/wiki/Web_service[
^]