Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between WCF service library and WCF service application [duplicate]

Tags:

.net

iis

wcf

I want to send a file from android to .NET server, will it make any difference if I use a WCF service application and WCF service library? (Further info: I am using IIS for hosting.)

like image 658
user2818487 Avatar asked Oct 14 '13 06:10

user2818487


People also ask

What is the difference between WCF Service Library and WCF Service application?

The major difference is that the WCF Service Application has a . svc file, whereas the WCF Service Library does not have a . svc file. Suppose we want to host this service application in IIS, then you need to specify for IIS the execution runtime environment requirements.

What is WCF Service Library?

The WCF Service Application template can be used to create WCF services with a hosting website created within the project. The WCF Service Library template can be used to create WCF services that are hosted by the WCF Service Host, and these can be tested using the WCF service Test Client.

What is WCF service application in Visual Studio?

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application.


2 Answers

you need to use a wcf service application project and host it over IIS. If you are creating a WCF client library, you need to add another project in your solution and add reference of service in it to host. If you want to keep separate projects for service library and hosting project so that you can host it on some other hosting application also, you can go for second approach. other wise WCF service Application is enough for IIS hosting.

like image 80
Rahul Patel Avatar answered Sep 21 '22 06:09

Rahul Patel


A service application includes a website host already setup for you. A service library is a library of services that a host can reference and startup.

Here you can find the best explanation

like image 28
Thilina H Avatar answered Sep 19 '22 06:09

Thilina H