单项选择题
You are creating a Windows Communication Foundation (WCF) service to process orders. The data contract for the order is defined as follows. [DataContract] public class Order { [DataMember] public string CardHolderName { get; set; [DataMember] public string CreditCardNumber { get; set; } }You have the following requirements: "Enable the transmission of the contents of Order from the clients to the service. "Ensure that the contents of CreditCardNumber are not sent across the network in clear text. "Ensure that the contents of CreditCardNumber are accessible by the service to process the order. You need to implement the service to meet these requirements. What should you do?() For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!
A. Add a DataProtectionPermission attribute to the CreditCardNumber property and set the ProtectData property to true.
B. Convert the DataContract to a MessageContract and set the ProtectionLevel property to SignAndEncrypt.
C. Change the data type of CreditCardNumber from string to SecureString.
D. Implement the CreditCardNumber property getter and setter.
相关考题
-
单项选择题
AWindowsCommunicationFoundation(WCF)solutionexposesthefollowingcontractoveranHTTPconnection.FunctionGetData()AsStringEndInterfaceExistingclientsaremakingblockingcallstoGetData.CallstoGetDatatakefivesecondstocomplete.Youneedtoallownewclientstoissuenon-blockingcallstogetthedata,withoutbreakinganyexistingclients.Whatshouldyoudo?()
A.
B.
C.Generate a proxy class with asynchronous methods and use it for the new clients.
D.Add a new endpoint to the service that uses a full-duplex binding and use it for the new clients. -
单项选择题
AWindowsCommunicationFoundation(WCF)servicehasacallbackcontract.Youaredevelopingaclientapplicationthatwillcallthisservice.YoumustensurethattheclientapplicationcaninteractwiththeWCFservice.Whatshouldyoudo?()
A. On the OperationContractAttribute, set the AsyncPattern property value to True.
B. On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client. For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!
C. On the client, create a proxy derived from DuplexClientBase(Of TChannel).
D. On the client, use GetCallbackChannel(Of T). -
单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicethatimplementsoperationsinaRESTfulmanner.Youneedtoaddadeleteoperation.Youimplementthedeletemethodasfollows.stringvoidDeleteItems(stringid);YouneedtoconfigureWCFtocallthismethodwhentheclientcallstheservicewiththeHTTPDELETEoperation.Whatshouldyoudo?()
A. Add the WebInvoke(UriTemplate = "/Items/{id}",Method="DELETE") attribute to the operation.
B. Add the HttpDelete attribute to the operation.
C. Replace the string parameter with a RemovedActivityAction parameter.
D. Replace the return type with RemovedActivityAction.
