what is overloading in WCF?how to do autentication in WCF.



what is overloading in WCF?how to do autentication in WCF...

Answer / niloy roy

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.

Is This Answer Correct ?    18 Yes 1 No

Post New Answer

More WCF Interview Questions

What are the different types of transaction managers supported by wcf?

0 Answers  


How to configure reliability while communicating with wcf services?

0 Answers  


How datacontractserializer different from xmlserializer?

0 Answers  


What is the main advantage of was?

0 Answers  


How to deal with operation overloading while exposing the wcf services?

0 Answers  






What wcf stands for?

0 Answers  


Different ways to host WCF service?

1 Answers   Indiabulls,


what are the MEPs available in WCF?

0 Answers  


What are the features of wcf?

0 Answers  


What are the advantages of wcf?

0 Answers  


What is the basic difference between creating WCF service or WEB services?

0 Answers   Petranics Solutions,


What is callback mode in wcf? Explain.

0 Answers  


Categories