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 is wcf peer network binding type? : Wcf data services
explain service contracts? : Wcf data services
What is datacontractserializer in wcf?
Explain service contracts?
What is address in wcf?
What are different elements of wcf srevices client configuration file?
Explain briefly different instance modes in wcf?
What is datacontract?
How many Instance modes is supported by WCF?
What is purpose of IsWrapped property in Message Contract in WCF?
What is the use of sessionmode?
How to do authentication in wcf?
How can we host wcf service?
can you explain fault contracts? : Wcf data services
Difference between wcf and web services?