Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Can anyone explain in details the Difference between Windows Services and Web Services. The Advantage of using one over the other and what Scenario are they applicable and how can they be implemented.

Thanks
Posted

You can't compare a windows service with a web service like you suggest, they are actually who different things.

A web service is essentially a website. You use the http protocol to call a method of your webservice which in turn sends you the result.
For more details see the Web service Wikipedia entry.[^]

A windows service is an application with no interface, you cannot communicate with it without setting that up for yourself, like .NET remoting.
For more details see the Windows service Wikipedia entry.[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Aug-11 23:07pm    
I suggest we automatically delete all questions in the form "what is the difference between {0} and {1}". They cannot be considered correct.
--SA
Simon Bang Terkildsen 25-Aug-11 23:49pm    
hehe yeah. Though back when I started I thought that there were a language for each type of file (exe, dll, ocx, ect.). Granted I were only 7 years old, but it was first when a family member set me straight and handed me the book "The C++ Programming Language" by my kinsman Bjarne Stroustrup, that I actually started to learn what it was all about and where to go for information.
An XML Web service is a component that implements program logic and provides functionality for separate applications. These applications use standard protocols, such as HTTP, XML, and SOAP, to access the functionality. XML Web services use XML-based messaging to send and receive data, which enables heterogeneous applications to inter-operate with each other. You can use XML Web services to integrate applications that are written in different programming languages and deployed on different platforms. In addition, you can deploy XML Web services within an intranet as well as on the Internet. While the Internet brings users closer to organizations, XML Web services allow organizations to integrate their applications.


A Windows service starts much before any user logs in to the system (if it has been setup to start at boot up process). A Windows service can also be setup in such a way that it requires a user to start it manually ? the ultimate customization! Windows services run as background processes. These applications do not have a user interface, which makes them ideal for tasks that do not require any user interaction. You can install a Windows service on any server or computer that is running Windows 2000, Windows XP, or Windows NT. You can also specify a Windows service to run in the security context of a specific user account that is different from the logged on user account or the default computer account. For example, you can create a Windows service to monitor performance counter data and react to threshold values in a database.
 
Share this answer
 
v2
Both are two totally different concepts with totally different uses and just cannot be compared.

The only similarity perhaps is that none of them have an UI.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Aug-11 23:07pm    
I suggest we automatically delete all questions in the form "what is the difference between {0} and {1}". They cannot be considered correct.
--SA
Windows service is not a web based whereas the webservice is webbased

for complete answer you need to go through below given link .

http://makeadvice.com/blog/?p=148[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900