Microsoft
98-363 · Question #29
A Web service contains the following code. You need to expose the method in the Web service. What should you do?
The correct answer is D. Add the class to the System.Web namespace. See the full explanation below for the reasoning.
Question
A Web service contains the following code. You need to expose the method in the Web service. What should you do?
Exhibit
Options
- ADecorate the method with the WebMethod attribute.
- BChange the method scope from public to web.
- CChange the class scope from public to web.
- DAdd the class to the System.Web namespace.
How the community answered
(34 responses)- A6% (2)
- B12% (4)
- C3% (1)
- D79% (27)
Community Discussion
No community discussion yet for this question.
