Microsoft TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4 - 70-513 FREE EXAM DUMPS QUESTIONS & ANSWERS

A Windows Communication Foundation (WCF) client configuration file contains the following XML segment in the system.serviceModel element.
<client>
<endpoint address=" net.tcp://server/ContosoService "
binding=" netTcpBinding "
contract=" Contoso. IContoso Service "
name=" netTcp " / >
<endpoint address=" net.pipe://localhost/ContosoService "
binding=" netNamedPipeBinding "
contract=" Contoso. IContoso Service "
name=" netPipe " />
</client>
You need to create a channel factory that can send messages to the endpoint listening at net.pipe://localhost/ContosoService.
Which code segment should you use
Correct Answer: D Vote an answer
You are developing a client application that consumes a Windows Communication Foundation (WCF) service.
You use the svcutil.exe utility to create a proxy for the service.
You use the svcutil.exe switches that generate asynchronous calls. GetFlight is a service operation that takes no parameters and returns a string. The GetFlightCallback method must be called when the service operation returns.
You create an instance of the client proxy with the following code.
var client = new TravelServiceClient();
You need to ensure that a callback is received when the GetFlight operation is called asynchronously.
Which code segment should you use?
Correct Answer: A Vote an answer
You develop a Windows Communication Foundation (WCF) service that includes the following code. (Line numbers are included for reference only.)

ServiceB must not accept reentrant service calls. You need to modify the behavior of the service. What should you do?
Correct Answer: C Vote an answer
Explanation: Only visible for FreeCram members. You can sign-up / login (it's free).
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>
Sub PostData(Byval data As Order) You need to modify PostData so that it can receive any SOAP message.
Which code segment should you use?
Correct Answer: B Vote an answer
You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel.
You find that operations do not start until all previous operations have finished. The service hosting code contains the following lines.
Dim service = New WarehouseService()
Dim hose = New ServiceHost(service)
You need to ensure that new operations do not wait for previous operations to finish.
Which attribute should you use to decorate the service?
Correct Answer: D Vote an answer
You develop a Windows Communication Foundation (WCF) service that contains the following code segment. (Line numbers are included for reference only.)

You need to ensure that all service endpoints are available to client applications. Which code segment should you insert at line 04?
Correct Answer: D Vote an answer
You develop a Windows Communication Foundation (WCF) service that interacts with Microsoft Message Queuing (MSMQ).
The service requires sessions. You need to create a custom binding that enables messages sent to the queue to be viewed when you are using a listener tool.
Which binding elements should you use?
Correct Answer: A Vote an answer
You develop a Windows Communication Foundation (WCF) service to generate reports. Client applications call the service to initiate report generation but do not wait for the reports to be generated. The service does not provide any status to the client applications.
The service class is defined as follows. (Line numbers are included for reference only.)
01 <ServiceContract()> 02 Public Class ReportGeneratorService 03 04 Private Function GenerateReports( ByVal clientID As Integer) As Integer 05 & 06 Return 0 07 End Function 08 09 End Class
You need to ensure that client applications can initiate reports without waiting for status.
Which two actions should you perform (Each correct answer presents part of the solution. Choose two.)
Correct Answer: B,C Vote an answer
An ASP.NET application hosts a RESTful Windows Communication Foundation (WCF) service at /Services/Contoso.svc . The service provides a JavaScript resource to clients. You have an explicit reference to the JavaScript in your page markup as follows.
<script type="text/3avaScript" src="/Secvices/Contoso.svc/js" />
You need to retrieve the debug version of the service JavaScript.
What should you do?
Correct Answer: C Vote an answer
You develop a Windows Communication Foundation (WCF) service. You enable all performance counters and run multiple calls to the service.
The service must isolate session data for each user.
You need to monitor the instancing behavior used in the service.
Which performance counter should you monitor?
Correct Answer: A Vote an answer
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?
Correct Answer: C Vote an answer
You are developing a Windows Communication Foundation (WCF) service that executes a long-running operation.
The service is accessed from your business applications in a server transaction in which the client does not participate.
You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds.
What should you do?
Correct Answer: D Vote an answer
You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.

You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object.
What should you do?
Correct Answer: C Vote an answer
0
0
0
10