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
What is the usage of "receivetimeout" property in wcf?
What are the protocols supported by wcf hosting environment?
What is the use of servicebehavior attribute in wcf ?
what is the endpoint in WCF and what are the three major points in WCF?
What is "know types" in wcf?
What is transport and message reliability?
Which styles of models are supported in wcf?
Define message contracts?
Can you explain how end points, contract, address and bindings are done in wcf?
What wcf stands for?
How would you generate a proxy for wcf?
What is endpoint in wcf service?
WCF:Do the system-provided bindings have the support for the Reliable session and what the binding options are enabled by default?
How to perform Transaction query in WCF?
What is the use of sessionmode?