nerdexam
Microsoft

70-515 · Question #29

70-515 Question #29: Real Exam Question with Answer & Explanation

Sign in or unlock 70-515 to reveal the answer and full explanation for question #29. The question stem and answer options stay visible for context.

Question

You are implementing an ASP.NET Web site. The Web site contains a Web service named CustomerService. The code-behind file for the CustomerService class contains the following code segment. public class ProductService : System.Web.Services.WebService { public List<Product> GetProducts(int categoryID) { return GetProductsFromDatabase(categoryID); } } You need to ensure that the GetProducts method can be called by using AJAX. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AApply the WebService attribute to the ProductService class.
  • BApply the ScriptService attribute to the ProductService class.
  • CApply the WebMethod attribute to the GetProducts method.
  • DApply the ScriptMethod attribute to the GetProducts method.

Unlock 70-515 to see the answer

You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-515 Practice