Click here to Skip to main content
15,891,725 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
As its possible to consume both wcf service library and wcf service application in Windows Console Application, Which one i have to follow?
Posted
Updated 26-May-15 2:32am
v2

1 solution

1) yes; 2) follow what's suites your goals, one, another, or both.
The question makes little to no sense.

—SA
 
Share this answer
 
Comments
tnkarthi 26-May-15 23:48pm    
Than what is different between wcf service library and wcf service application ?
Sergey Alexandrovich Kryukov 27-May-15 0:06am    
As nearly all "difference" question, this is an incorrect question. How would you define "difference"? Just read on the topics.
—SA
tnkarthi 27-May-15 0:10am    
thanks. kindly understand my question. for what purpose we go wcf service library and for what purpose we go wcf service application?.
Sergey Alexandrovich Kryukov 27-May-15 0:31am    
All right. WCF application is just the application, the assembly with the entry point, using some other assemblies playing the role of the libraries. One adequate form of the application would be a Windows Service, but this is not the rule. Note that the application is stand-along (it does not need "hosting", or, more exactly, its host is the OS). The application can self-host the WCF; in this case, WCF just plays the role of one of the libraries consumed by the application. Please read on this topic: https://msdn.microsoft.com/en-us/library/ee939340.aspx.

The model with the use of WFC Service Library is more sophisticated and gives you more flexibility, but it does not mean it should always be preferred. This is well explained in the second top answer to this question:
http://stackoverflow.com/questions/1423065/what-is-the-purpose-of-wcf-service-library.

See also: http://www.aspfree.com/c/a/ASP.NET/Developing-a-WCF-Service-Library-and-Hosting-it-as-WCF-Web-Service-Using-VS2K8/.

I basically answered, but you need to have a good reading and pay considerable effort to grasp the concepts.
Will you accept my answer formally now?

—SA

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