what is overloading in WCF?how to do autentication in WCF.
Answer Posted / 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 View All Answers
Can we have two way communications in msmq?
What is the purpose of base address in wcf service? How it is specified?
Which are the various programming approaches for wcf?
Give an example of knowtype.
What is throttling in wcf?
how many types of contract does WCF defines?
How the concurrency mode is specified in wcf service?
What is address in wcf?
WCF:What is it the Teredo? How can we use it?
Why to use wcf?
Explain briefly different instance modes in wcf?
What is overloading in wcf? How to do authentication in wcf?
List out the difference between XMLSerializer and the DataContractSerializer?
What is fault contracts in wcf?
What is InstanceContextMode in WCF?