What is .svc file in WCF?

 Posted by Prasham on 10/6/2010 | Category: WCF Interview questions | Views: 53380 | Points: 40

.svc file is a text file. This file is similar to our .asmx file in web services.

This file contains the details required for WCF service to run it successfully.

This file contains following details :
1. Language (C# / VB)
2. Name of the service
3. Where the service code resides

Example of .svc file

<%@ ServiceHost Language="C#/VB" Debug="true/false" CodeBehind="Service code files path" Service="ServiceName"

We can also write our service code inside but this is not the best practice.

| Alert Moderator 

Comments or Responses

Login to post response