搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

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.)<br /> 01 [ServiceContract( )]<br /> 02<br /> 03 public interface IEmployeeService<br /> 04 {<br /> 05 [OperationContract( )]<br /> 06 EmployeeInfo GetEmployeeInfo(int employeeID);<br /> 07<br /> 08 }<br /> 09<br /> 10 public class EmployeeService : IEmployeeService<br /> 11 {<br /> 12<br /> 13 public EmployeeInfo GetEmployeeInfo(int employeeID)<br /> 14 {<br /> 15 ...<br /> 16 }<br /> 17 }<br /> 18<br /> 19<br /> 20 public class EmployeeInfo<br /> 21 {<br /> 22 ...<br /> 23 public int EmployeeID { get; set; }<br /> 24 public string FirstName { get; set; }<br /> 25 public string LastName { get; set; }<br /> 26<br /> 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 th

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

更多“ 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.)<br /> 01 [ServiceContract( )]<br /> 02<br /> 03 public interface IEmployeeService<br /> 04 {<br /> 05 [OperationContract( )]<br /> 06 EmployeeInfo GetEmployeeInfo(int employeeID);<br /> 07<br /> 08 }<br /> 09<br /> 10 public class EmployeeService : IEmployeeService<br /> 11 {<br /> 12<br /> 13 public EmployeeInfo GetEmployeeInfo(int employeeID)<br /> 14 {<br /> 15 ...<br /> 16 }<br /> 17 }<br /> 18<br /> 19<br /> 20 public class EmployeeInfo<br /> 21 {<br /> 22 ...<br /> 23 public int EmployeeID { get; set; }<br /> 24 public string FirstName { get; set; }<br /> 25 public string LastName { get; set; }<br /> 26<br /> 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 th”相关的问题
第7题

A、A. Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.  B、B. Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.  C、C. Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.  D、D. Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服