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 datacontractserializer and how its different from xmlserializer?

470


Please explain briefly different instance modes in wcf?

439


What is the usage of "maxconcurrentcalls" in throttling?

467


What are the types of contract available in wcf?

476


What do you mean by client?

460






Describe the wcf architecture?

468


What is .net 3.0?

448


How do wcf services work?

446


What are the different platforms where we can host wcf service ?

484


explain wcf web service (ws) binding type? : Wcf data services

411


When is the msmqintegrationbinding?

453


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?

441


What is address in wcf?

473


What is the difference between wcf and web services?

500


how many types of contract does WCF defines?

472