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

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

425


explain service contracts? : Wcf data services

473


What is datacontractserializer in wcf?

484


Explain service contracts?

458


What is address in wcf?

463






What are different elements of wcf srevices client configuration file?

465


Explain briefly different instance modes in wcf?

456


What is datacontract?

466


How many Instance modes is supported by WCF?

481


What is purpose of IsWrapped property in Message Contract in WCF?

473


What is the use of sessionmode?

481


How to do authentication in wcf?

469


How can we host wcf service?

464


can you explain fault contracts? : Wcf data services

424


Difference between wcf and web services?

470