1) What is WCF ?
- Service class
- End point
- Hosting Environment
WCF will follow – “Software and Service Model” , in which all essential components are defined as services and this will be used by client program.
Classic webservice known as ASMX were using SOAP protocol for sending and receiving the messages over network and over HTTP protocol whereas WCF allows the communication to happen over any transport protocol.
5) What is Endpoint in WCF?
Endpoint will have following properties –
6) Explain “Address” property of endpoint in WCF?
“Address” property is the part of endpoint defined in service level and this property is used to determine the location if the service, where it is located.
7) Explain “Binding” property of endpoint in WCF?
“Binding” property is the part of endpoint defined in service level and this property is used to decide out the type protocols, encoding's and transport. These all factors has been decided by both the parties who want to communicate each other.
8) Explain “Contract” property of endpoint in WCF?
It is just an interface between client and server where client and server communicate each other. Contracts are used to identify operations available.
9) Explain the types of contracts available in WCF?
Below are the list types of contracts available in WCF
- Data Contracts
- Service Contracts
- Message Contracts
- Fault Contracts
10) Explain “Service Contracts” in WCF?
Service Contracts attribute given at the service level for WCF service and it will give you the list of operations that can be performed from that service. Service Contracts can be defined like –
11) Mention the list of bindings supported by WCF?
Below are the list of schemas supported by WCF –
- Peer Network
12) Explain the ways to host the WCF Service?
Below are ways to host WCF Service –
- Self Hosting
13) What is the Address format in WCF?
Below is the syntax of address –
[transport]://[machine or domain][optional port number]
14) What are duplex contracts in WCF?
Duplex contracts mainly uses duplex messaging which is used for callback to the client. Duplex messaging uses transport systems like – HTTP, TCP or Named Pipe.
15) What are different instance modes in WCF?
Below are the list of instance modes in WCF –
- Per Call
- Per Session