WCF (Windows Communication Foundation) Question:

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

Tweet Share WhatsApp

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) PDF Read All 13 WCF (Windows Communication Foundation) Questions
Previous QuestionNext Question
What is the main advantage of WAS? (Windows activation service) When it is used?Explain Different ways to host WCF service?