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
Explain wcf?
What is the basic difference between creating WCF service or WEB services?
explain wcf? : Wcf data services
How we can use MessageContract partially with DataContract for a service operation in WCF?
What is the transport and message reliability?
In WCF what are duplex contracts?
WCF:What is it the Reliable session?
What are the different modes of communication in wcf?
What hosting functionality is unique for the vista os?
What are the types of contract available in wcf?
Explain how to define a service as rest based service in wcf?
What is purpose of IsWrapped property in Message Contract in WCF?
What are the various ways of hosting a wcf service?
Explain data contracts?
How do wcf works?