当前位置:MCTS(70-513)题库

问题:

[单选]

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

A . Insert the following code at line 02. [DataContractFormat()] Insert the following code at line 22. [DataMember()]
B . Insert the following code at line 02. [XmlSerializerFormat()] Insert the following code at line 22. [XmlAtttibute()]
C . Insert the following code at line 09. [XmlSerializerFormat()] Insert the following code at line 22. [XmlAttribute()]
D . Insert the following code at line 19. [DataContractFormat()] Insert the following code at line 22. [DataMember()]

《悼亡诗》 Which utility allows you to pre-compile and publish your Web site to a new location?() Publish Web Site。 Web-based installation。 Web site project mode。 Web services directory。 何谓关键路线?关键路线在项目管理与控制中的作用是什么? 在Dreamweaver软件的主编辑窗口中,视图不包括是() 拆分。 级联。  设计。  代码。 教育心理学作为一门现代科学的诞生标志是美国心理学家()于1913年出版的三卷本(《教育心理学》)。

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

参考答案:

  参考解析

本题暂无解析

在线 客服