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


Please Help Members By Posting Answers For Below Questions

Which specifications does wcf follow?

618


Why is there a requirement of wcf for the enhancement of various business services?

581


What are the different modes of communication in wcf?

607


Where we can host wcf services?

641


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?

587


explain wcf basic binding type? : Wcf data services

567


can you explain fault contracts? : Wcf data services

585


What is wcf full form?

641


What is address in wcf?

614


Define the term policy binding?

628


what is wcf peer network binding type? : Wcf data services

568


What is callback mode in wcf?

605


How would you enable the metadata information of the service?

645


What is overloading in wcf?

570


How many types of bindings are in WCF?

685