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
do you know what is endpoint in wcf? : Wcf data services
In WCF what are duplex contracts?
Explain the wcf ria?
explain what is the difference wcf and web services? : Wcf data services
How we can achieve operation overloading while exposing wcf services?
Tell me what is three major points in wcf? : Wcf data services
List the various protocols utilized in the messaging layer in wcf?
Can you explain how end points, contract, address and bindings are done in wcf?
In wcf, which contract is used to document the errors occurred in the service to client?
Explain the various message exchange patterns?
explain what are the main components of wcf? : Wcf data services
Define data contracts?
In wcf which bindings supports the reliable session?
WCF:What types of reliable messaging are implemented in the WCF?
Which protocol is used for platform independent communication?