You are developing a data contract for a Windows Communicati

题目
单选题
You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()
A

ICommunicationObject

B

IExtension

C

IExtensibleObject

D

IExtensibleDataObject

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are developing a new version of an existing message contract named CustomerDetailsVersion1. The new version of the message contract must add a Department field of type String to the SOAP header.You create a new class named CustomerDetailsVersion2 that inherits from CustomerDetailsVersion1. You need to ensure that all client applications can consume the service.Which code segment should you use?()

A.

B.

C.

D.


参考答案:A

第2题:

You are developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources.You need to ensure that the service accesses these resources on behalf of the originating caller. What should you do?()

A. Set the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenlmpersonationLevel.Impersonation

B. Set the value of ServiceSecurityContext.Current.Windowsldentity.ImpersonationLevel to TokenlmpersonationLevel.Delegation

C. Set the PrincipalPermissionAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBinding

D. Set the PnncipalPermissionAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to wsHttpBinding


参考答案:B

第3题:

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

第4题:

You are planning to migrate an existing web application to Windows Azure.  The application consists of an ASP.NET web application and a set of native Win32 Windows Services that provide data to the application by using named pipes. The Windows Services cannot be modified.  You need to recommend a strategy for migrating the application to Windows Azure.  What should you recommend?()

  • A、 Define a Windows CommunicationFoundation (WCF) contract for the services.
  • B、 Deploy each Windows Service to a separate worker role.  Deploy the ASP.NET application to a web role.
  • C、 Deploy the application and Windows Services in a Windows Azure VM role.
  • D、 Upload service binaries to a web role by using the Windows Azure Service Management API.

正确答案:B

第5题:

You install a custom application on a computer that runs Microsoft Windows XP. The application stores each user’s data in the %programfiles%\app1\data folder on the computer. You install the custom application on a computer that runs Windows Vista.On the Windows Vista computer, you back up the %programfiles%\app1\data folder and notice that the backup contains no data.You need to back up the application’s user data on the Windows Vista computer.What should you do?()

A.A

B.B

C.C

D.D


参考答案:D

第6题:

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

第7题:

You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostData so that it can receive any SOAP message. Which code segment should you use?()

A. [OperationContract(IsOneWay=true, Action="*", ReplyAction="*")] void PostData(Order data);

B. [OperationContract(IsOneWay=true, Action="*", ReplyAction = "*")] void PostData(BodyWriter data);

C. [OperationContract] void PostData(BodyWriter data);

D. [OperationContract] void PostData(Message data);


参考答案:D

第8题:

You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()

A. TimeoutException

B. FaultException

C. DivideByZeroException

D. FaultException<SalesFault>


参考答案:B

第9题:

You are developing a Windows Presentation Foundation (WPF) application that display pricing and inventory.List box‘s ItemsSource property has decimal and string types. Decimals represent price and strings represents the folowing markup is defined as follows.You need to ensure that data templates are used to format the strings without changes and the decimals as ..Which markup segment should you insert at line 05 ?()

A.

B.

C.

D.


参考答案:C

第10题:

You are developing a Windows Communication Foundation (WCF) service. One of the parameters used with the service operations is a security token. The security token is not sensitive. The monitoring software tracks security tokens and can read tokens in clear text only.The company security policy requires that you validate all clear text data passed over the corporate network.You need to ensure that the service verifies that the security token is not changed during transit. What should you do?()

  • A、For all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to EncryptAndSign.
  • B、Implement IEndpointldentityProvider in the message contract class.
  • C、Implement ISecureConversationSession in the message contract class.
  • D、For all the security-sensitive members, set the ProtectionLevel parameter of the MessageBodyMember or MessageHeader attribute to Sign.

正确答案:D

更多相关问题