anil kumar

anil kumar

  • NA
  • 23
  • 4.9k

WCF service contract endpoint

Sep 9 2016 8:17 AM
Hi,
which one from the following statements is true for following piece of code :
Public class service
{
[operationContract]
[WebMethod]
public string Hello() {
return "Hello";
}
}
1. Enables "service" to be accessed only as WCF service
2. Enables "service" to be accessed only as .asmx
3. Will raise an exception
4. Enables .asmx part migration to WCF

Answers (2)