In this artical we have discussed WCF interview questions with answers. These are mostly asked interview questions of WCF. These interview questions help both freshers and experienced.
What is Difference between WCF and Web Service
- a) Web service is able to communicate only with web protocol i.e. http but wcf is able to communicate http, net.tcp, msmq etc.
-
b) We use servicecontroct and operationcontract attribute in wcf but in web service we use webservice and webmethod attribute.
-
c) Web services can be hosted only on IIS but wcf service can be hosted on IIS, WAS etc.
-
d) Web services doesn’t support multi-threading but in wcf we can use it.
-
e) Web services doesn’t support duplex or call back services but in wcf we can use it.
-
f) Wcf is highly secured than the web services.
-
g) Wcf is faster than the web services.
What is full form of WCF
Windows Communication Foundation
In which .net framework WCF introduced
It was introduced in .net 3.0 framework.
Which namespace we use in WCF
System.ServiceModel
What is WCF
Wcf is network-distributed service oriented technology. It is used to create the distributed architecture.
For More Detail Click Here
What is Endpoint
- Address: - it describes where the service resides in the network.
- Binding:-it describes how the service interacts with application.
- Contracts:-it describes what service will do.
What is contract
Contract is the most important part of the wcf. It explains what service can do. We have following type of contract available in wcf:-
What is binding customization
Binding customization is the way in which we can customize the binding according to need. For example we need to change the buffer size, timeout etc.
Figure 1
How many types of hosting we have in wcf
- a) IIS
- b) WAS
- c) Self-Hosting
What type of instance management we have in wcf
- a) Percall
- b) PerSession
- c) Single
What is the default instance management in wcf
In wcf PerSession is the default instance management.
What type of message exchange pattern in wcf
- a) Request & Reply
- b) OneWay
- c) Duplex or call back
What is default message exchange pattern in wcf
Request & Reply is the Default message exchange pattern.
Which protocol used in Duplex or call back mep.
wsDualHttpBinding