Test: First Web Service Program with C# Explained
4. Which of the following attributes are used to tag a class as a web service and a method as web method in .NET Framework / C#?
Congratulations! Correct Answer.
You Answered: None. If you took the test, your answer will show up here.
Correct Answer: WebService; WebMethod;
ExplanationYou will say that a particular class is a web service and contains methods accessible from other locations on the Internet by using the attribute [WebService]. The [WebMethod] attribute on a method identifies it as a web method.
Take the TestTake the complete test on this topic. You will be able to review answers to questions and get a test score.
Take the Test
Question 4 of 5