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
What are the different modes of communication in wcf?
explain wcf web service (ws) binding type? : Wcf data services
what is msmq binding? : Wcf data services
Explain the difference between transport and message level security.
Which bindings in wcf support the message streaming?
What is the purpose of base address in wcf service? How it is specified?
What is wcf federated ws binding type?
How many ways to hosting WCF service?
What is overloading in wcf?
Why to use wcf? Or what are the advantages of using wcf?
What is "singleton" instance mode in wcf?
What is "per call" instance mode in wcf?
What is the usage of "receivetimeout" property in wcf?
what are the MEPs available in WCF?
What is the advantage of WCF over Web Services(ASMX)?