题目内容

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?()

查看答案
更多问题

S7-200系列可编程序控制器的直流电源输入范围是()

A. 24-220VAC
B. 220-380VAC
C. DC24V
D. 86-26420VAC

对S7-200系列PLC,两个16位数整数相乘,产生一个32位的输出结果,应采用哪种指令?()

A. *I
B. *D
C. *R
D. MUL

子程序可以嵌套,嵌套深度最多为()层。

A. 5
B. 6
C. 8
D. 9

无条件子程序返回指令时()

A. CALL
B. CRET
C. RET
D. SBT

答案查题题库