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
Which specifications does wcf follow?
Why is there a requirement of wcf for the enhancement of various business services?
What are the different modes of communication in wcf?
Where we can host wcf services?
We have already 2 hostings iis and self hosting. There is another hosting ie was hosting. What is the use of the was(windows activation service) compared to other hosting?
explain wcf basic binding type? : Wcf data services
can you explain fault contracts? : Wcf data services
What is wcf full form?
What is address in wcf?
Define the term policy binding?
what is wcf peer network binding type? : Wcf data services
What is callback mode in wcf?
How would you enable the metadata information of the service?
What is overloading in wcf?
How many types of bindings are in WCF?