WCF Interview Questions and Answers (209) - Page 11

How can the client application get the precise server exception ?

If the client app(s) wants to get the reason for the precise exception cause, FaultException which happens through FaultContract finds it's place.

Another way to achieve the precise server exception is to set
<serviceDebug includeExceptionDetailInFaults="true"  />

In production environment, must should set it to False.
What is MTOM?

MTOM is an interoperable message format that allows the effective transmission of attachments or large messages (greater than 64K).

MTOM is the basically comes under Encoding part of a binding.
Apart from MTOM we have Text and Binary formats.
Communication between computers across peer-to-peer services. Supports duplex contracts. Which of the following?

NOTE: This is objective type question, Please click question title for correct answer.
What is ABC in WCF?

Address : An address that indicates where to find the service.
Binding : A binding that specifies how a client can communicate with the service.
Contract : A Contract that specifies what can the service do for us.

So without this ABC WCF wont work and this are consider to be an Endpoints.

An Endpoint is a piece of information that tells WCF how to build the runtime communication channels to send and receive messages. An endpoint consists of the three things address, binding and contract.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories