WCF INTERVIEW QUESTION and ANSWERS PDF
DOT Net
TAGS
1. | What are the types of contracts in Wcf? |
---|---|
|
Posted by Gaurav Rastogi. (Mar 03, 2014) | |
|
|
Posted by Sadhu Veeranjaneya Swami. (Nov 21, 2013) | |
Operation Contract. |
|
Posted by Afaq. (Nov 18, 2013) | |
Fault Contract. |
2. | What are the advantages of WCF? |
---|---|
|
3. | Define service contracts? |
---|---|
Service contracts define the operations that a service will perform when executed. They tell the outside world a lot about the service such as message data types, operation locations, the protocols the client will need in order to communicate with the service, and the operations the service provides. |
4. | Define message contracts? |
---|---|
Message contracts allow the control of SOAP messages that are produced and consumed by WCF. Basically it boils down to being able to customize the format of contract parameters and the placing of elements within a SOAP message, or in other words, having control of the structure as well as the contents of a SOAP message. |
Posted by Gaurav Rastogi. (Mar 03, 2014) | |
Service contract are those contract which basically contain our operation contract which can be exposed to the clients. |
5. | Define data contracts? |
---|---|
Data contracts specifically define the data that is being exchanged between a client and service. The data contract is an agreement, meaning that the client and the service must agree on the data contract in order for the exchange of data to take place. |
Posted by Gaurav Rastogi. (Mar 03, 2014) | |
Data Contracts are those contract which contains our data member and these data contracts can take part in the serialization process. The data member contain in the data contract can be serialized and transfer through protocol. |