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

Explain what is datacontract and servicecontract?

0 Answers  


Can you explain how end points, contract, address and bindings are done in wcf?

0 Answers  


What is wcf programming?

0 Answers  


Which are the various programming approaches for wcf?

0 Answers  


What is the difference between wcf and web services?

0 Answers  


What is "know types" in wcf?

0 Answers  


What do you understand by the term impersonation?

0 Answers  


Explain fault contracts?

0 Answers  


What is contract? What are the types of contract?

0 Answers  


What are tha advantages of hosting wcf service in was?

0 Answers  


What is the difference between wcf and wpf?

0 Answers  


Which styles of models are supported in wcf?

0 Answers  


Categories