Click here to Skip to main content
15,905,322 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Guyz,

is it possible to convert WCF to windows service?

something like in webconfig?


thanks,
Posted

No. The question itself makes no sense at all. WCF and Windows Service are not different options. You can use WCF with Windows Service and without it, self-host WCF in Windows Service or not, you can also use Windows Service without WCF, using sockets, classical remoting, named pipes or anything else for communications.

These two concepts are not related. Windows Service is a type of application which is hosted by the service host and runs in non-interactive mode; in this way, it keeps running when users log in and out or in nobody logs in. WCF is well… a Foundation, Windows Communication Foundation, a Framework and API which can be used in any type of applications, no exclusions.

You have to read at least just a bit before asking such questions. See:

http://en.wikipedia.org/wiki/Windows_Service[^],
http://msdn.microsoft.com/en-us/library/d56de412%28v=VS.100%29.aspx[^],

http://en.wikipedia.org/wiki/Windows_Communication_Foundation[^],
http://msdn.microsoft.com/en-us/library/ms731082.aspx[^],
http://msdn.microsoft.com/en-us/netframework/aa663324[^].

[EDIT]

Here is a step-by-step advice of how to self-host WCF: http://msdn.microsoft.com/en-us/library/ms731758.aspx[^].

If you need something else, you have to explain it. If you don't have any special requirements, I would recommend to self-host.

—SA
 
Share this answer
 
v3
Comments
D K N T H 21-Nov-11 21:37pm    
oops,, yeah ur right, the question should be "how to bind WCF in windows service"
can you give some step by step tutorials?? thanks.
Sergey Alexandrovich Kryukov 22-Nov-11 0:12am    
Do you want to self-host WCF in window service or you have any other host in mind (IIS)? I would recommend to self-host. Windows Service itself does not make a big difference.
--SA
Sergey Alexandrovich Kryukov 22-Nov-11 0:14am    
One more reference added in response to it, please see above after [EDIT].
--SA
RaisKazi 21-Nov-11 22:48pm    
Agree. 5ed.
Sergey Alexandrovich Kryukov 22-Nov-11 0:10am    
Thank you, Rais.
--SA
 
Share this answer
 
Comments
Amir Mahfoozi 29-Nov-11 9:28am    
+5 Nice answer.
RaisKazi 29-Nov-11 9:30am    
Thank you Amir.

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