WCF Interview Questions and Answers (209) - Page 10

In WCF, binding of web services with federated security is ?

NOTE: This is objective type question, Please click question title for correct answer.
WCF Binding to communicate directly with the MSMQ applications is ?

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

NetNamedPipeBinding is the WCF Binding which is for the communication of different WCF applications on the same computer.
It Supports Duplex contract and transaction support like WSDualHttpBinding.
What is the WCF service used for the communication of computers across point to point services ?

NOTE: This is objective type question, Please click question title for correct answer.
In WCF, the operation contract in which client will be able to send request to the server but he is not able to get reply is ?

NOTE: This is objective type question, Please click question title for correct answer.
What is the Request Reply contract in WCF services ?

It is the default contract of a WCF service.
In this contract, client will be able to send request to the server and waits to get a response from the server. this is known as ReceiveTimeout.
If client doesn't gets any response untill that ReceiveTimeout, he will get TimeOutExecption instead.
After getting the response, it starts executing the remaining thing.
What is the WCF contract to Handle the errors in WCF service ?

'Fault Contract'.
This will handle the errors in a WCF service and reports it to the client in a clean manner.
This is similar to the Execption Handling like we do with Try-Catch blocks in Asp.Net.
What is the Message Contract in WCF?

'Message contract' uses messages to exchange the information between client and server i.e, source and destination.
Messages are usually the data packets with information to be transfer.
SOAP(Simple Object Access Protocol) is used in WCF for proper communication.
SOAP contains Envelope, Header and Body.
In WCF, the mode of security by default in BasicHttpBinding is?

NOTE: This is objective type question, Please click question title for correct answer.
In WCF, which of the following functionalities doesn't not supported by BasicHttpBinding?

NOTE: This is objective type question, Please click question title for correct answer.
In WCF, the namespaces used for serialization is?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following is the End point component of WCF?

NOTE: This is objective type question, Please click question title for correct answer.
Which of the following type of encoding is used in WCF?

NOTE: This is objective type question, Please click question title for correct answer.
how do we deprecating / hiding service operation on WSDL

If the user has a service which is used by many clients out of their control.
If Some operations, didn’t make sense , so if we wanted to deprecate those operations, preventing new clients from using them and also didn’t want to break existing clients, hence we couldn’t simply remove the operations, we can use attribute, which would remove the operation from the metadata, but not from the runtime, we can use ServiceMetadataContractBehavior attribute to achieve this..
Eg.

[ServiceContract]
[DeprecatedOperationsWsdlExportExtension]
public interface ICalculator
{
[OperationContract]
int Add(int x, int y);
[OperationContract]
[DeprecatedOperation]
int Divide(int x, int y);
}

Which statement(s) is/are correct about WCF?

NOTE: This is objective type question, Please click question title for correct answer.
How will you consume a WCF Sevice without creating a proxy.

NOTE: This is objective type question, Please click question title for correct answer.
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