WCF (Windows Communication Foundation) Question:
Download Questions PDF

What is overloading in WCF? How to do authentication in WCF.?

Answer:

Using the "Name" we can achieve operational overloading
interface IInterfaceName
{
[OperationContract (Name = "aliasName1")]
int MethodName (int param1, int param2);

[OperationContract (Name = "aliasName2")]
double MethodName (double param1, double param1);
}

For authentication:-
Say windows,

set the authentication mode as follows
<authentication mode="Windows" />

then in the end point set bind the configuration as below.

<endpoint address="basic" binding="basicHttpBinding"
contract="WcfServiceLibrary1.IService1"
bindingConfiguration="BND" />

<bindings>
<basicHttpBinding>
<binding name="BND">
<security mode ="Transport">
<transport clientCredentialType ="Windows"/>
</security>
</binding>
</basicHttpBinding>
</bindings>

For to USE IIS,make sure that IIS Annonymous authentication
is DISABLED.

Download WCF (Windows Communication Foundation) Interview Questions And Answers PDF

Previous QuestionNext Question
What is the main advantage of WAS? (Windows activation service) When it is used?Explain Different ways to host WCF service?