You are developing a Windows Communication Foundation (WCF) service to replace an existing ASMX Web service.The WCF service contains the following code segment. (Line numbers are included for reference only.)
01 [ServiceContract()]
02
03 public interface IEmployeeService
04 {
05 [OperationContract()]
06 EmployeeInfo GetEmployeeInfo(int employeeID);
07
08 }
09
10 public class EmployeeService : IEmployeeService
11 {
12
13 public EmployeeInfo GetEmployeeInfo(int employeeID)
14 {
15 ...
16 }
17 }
18
19
20 public class EmployeeInfo
21 {
22 ...
23 public int EmployeeID { get; set; }
24 public string FirstName { get; set; }
25 public string LastName { get; set; }
26
27 }The existing Web service returns the EmployeelD as an attribute of the Employeelnfo element in the response XML.You need to ensure that applications can consume the service without code changes in the client.
What should you do?()
第1题
A.RenderPartial
B.Action
C.Render
D.RenderAction
第3题
A.Windows deployment Services role and deployment server role service.
B.Windows deployment services role and deployment transport role service.
C.Network policy and access services role and routing and remote access services role service.
D.Network policy and access services and host credential authorization protocol role service.
第4题
A.public delegate int PowerDeviceOn(bool result, DateTime autoPowerOff);
B.public delegate bool PowerDeviceOn(object sender, EventArgs autoPowerOff);
C.public delegate void PowerDeviceOn(DateTime autoPowerOff);
D.public delegate bool PowerDeviceOn(DateTime autoPowerOff);
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!