70-515 · Question #30
You are implementing a WCF service library. You add a new code file that contains the following code segment. namespace ContosoWCF { [ServiceContract] public interface IRateService {…
Sign in or unlock 70-515 to reveal the answer and full explanation for question #30. The question stem and answer options stay visible for context.
Question
You are implementing a WCF service library. You add a new code file that contains the following code segment. namespace ContosoWCF { [ServiceContract] public interface IRateService { [OperationContract] decimal GetCurrentRate(); } public partial class RateService : IRateService { public decimal GetCurrentRate() { decimal currentRate = GetRateFromDatabase(); return currentRate; } } } You build the service library and deploy its assembly to an IIS application. You need to ensure that the GetCurrentRate method can be called from JavaScript. What should you do?
Options
- AAdd a file named Service.svc to the IIS application.
- BAdd a file named Service.svc to the IIS application.
- CApply the script service attribute to rate serice class Rebulid the WCF servicelibrary, and
- DApply the Web get attibute to the Get Currant rate interface Method.Rebuild the WCF
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.