You have a Windows Communication Foundation (WCF) service that accepts the following message contract.[MessageContract(WrapperNamespace="http://www.movies.com", ProtectionLevel=ProtectionLevel.None)] public class Ticket{ [MessageBodyMember(Namespace="http

题目

You have a Windows Communication Foundation (WCF) service that accepts the following message contract.[MessageContract(WrapperNamespace="http://www.movies.com", ProtectionLevel=ProtectionLevel.None)] public class Ticket{ [MessageBodyMember(Namespace="http://www.movietheater.com", Order=1)] public DateTime ShowTime = DateTime.Now; [MessageBodyMember(Namespace="http://www.movietheater.com")] public string ReservationName = "Smith"; [MessageBodyMember(Namespace="http://www.movietheater.com")] public int NumberOfSeats = 0;}You need to ensure that the client sends a SOAP body that is accepted by the service.()

A.

B.

C.

D.


相似考题
参考答案和解析
参考答案:A
更多“You have a Windows Communication Foundation (WCF) service that accepts the following messa ”相关问题
  • 第1题:

    You are developing a Windows Communication Foundation (WCF) service.You need to enable security auditing for all events.What should you do?()

    A. Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.

    B. Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.

    C. Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.

    D. Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.


    参考答案:C

  • 第2题:

    You are developing a Windows Communication Foundation (WCF) service. The service operation takes a customer number as the only argument and returns information about the customer. The service requires a security token in the header of the message. You need to create a message contract for the service.Which code segment should you use?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第3题:

    You have an existing Windows Communication Foundation (WCF) service. You need to ensure that other services are notified when the service is started.What should you do?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第4题:

    You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.The Windows Service class will inherit from ServiceBase.You need to ensure that the WCF service starts when the Windows Service is restarted.What should you do in the Windows Service class?()

    A.

    B.

    C.

    D.


    参考答案:B

  • 第5题:

    You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()

    A. NetTcpContextBinding

    B. BasicHttpContextBinding

    C. NetTcpBinding

    D. NetMsmqBinding


    参考答案:B

  • 第6题:

    You look() What()you()?

    Atire;did;do

    Btiring;have;done

    Ctired;do;do

    Dtired;have;been doing


    D