070-513 試験問題を無料オンラインアクセス
試験コード: | 070-513 |
試験名称: | TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4 |
認定資格: | Microsoft |
無料問題数: | 323 |
更新日: | 2025-09-02 |
A WCF service code is implemented as follows. (Line numbers are included for reference only.)
01 [ServiceContract] 02 [ServiceBehavior(InstanceContextMode = 03 InstanceConcextMode.Single)]
04 public class CalculatorService
05 {
06 [OperacionContract]
07 public double Calculate(double opl, string op, double op2)
08 {
...
24 }
25 }
You need to decrease the response time of the service.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.
<ServiceContract() > Public Interface IPaymentService <OperationContract() > Sub RecordPayments(ByVal person As Person) End Interface Public Class Person End Class Public Class Employee Inherits Person End Class Public Class Customer Inherits Person End Class
You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object.
What should you do?
A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP
binding with a custom principal permission mode. The binding requires users to provide their Windows logon credentials.
You need to retrieve the identity of the caller.
What are two possible properties you can use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A class named TestService implements the following interface.
TestService is hosted in an ASP.NET applicator.
You need to modify the application to allow the GetServiceTime method to return the data formatted as JSON.
It must do this only when the request URL ends in lServiceTime.
What should you do?
You are developing a Windows Communication Foundation (WCF) service that reads messages from a public non-transactional MSMQ queue.
You need to configure the service to read messages from the failed-delivery queue.
Which URI should you specify in the endpoint configuration settings of the service?