Difference between WCF Service Library and WCF Application

I want to use the WCF service (.svc) in my WPF project. I am trying to create a service. But in Visual Studio we have a "WCF service library" and a "WCF service application". I tried both.

When we create a “WCF service application”, we will get a .svc. File, that when we start, we will get a .svc file as a service referee.

But what about the WCF Service Library project? When I create this, I received only the .cs files, and I tried to add new .svc files, but we have no way to add .svc files. Read how to use the services created in the WCF Service Service project in My WPF

+7
source share
1 answer

Services created in the WCF service library can be hosted using multiple paradigms. The following link (rather old) explains various ways to define a wcf service.

http://msdn.microsoft.com/en-us/library/bb332338.aspx

note that you need a .svc file if you host your wcf service in IIS. you can write your own host and will not require a .svc file

+1
source

All Articles