Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are the different modes of communication in wcf?

854


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

737


what is msmq binding? : Wcf data services

836


Explain the difference between transport and message level security.

768


Which bindings in wcf support the message streaming?

860


What is the purpose of base address in wcf service? How it is specified?

841


What is wcf federated ws binding type?

794


How many ways to hosting WCF service?

816


What is overloading in wcf?

791


Why to use wcf? Or what are the advantages of using wcf?

829


What is "singleton" instance mode in wcf?

1140


What is "per call" instance mode in wcf?

863


What is the usage of "receivetimeout" property in wcf?

831


what are the MEPs available in WCF?

832


What is the advantage of WCF over Web Services(ASMX)?

893