PrepAway - Latest Free Exam Questions & Answers

Category: 70-513 (v.2)

Exam 70-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4 (update October 28th, 2015)

You need to ensure that the service is configured to process multiple orders in one transaction

Your company has an existing Windows Communication Foundation (WCF) service that
allows business partners to place orders. The service uses netMsmqBinding. You find that
processing every order in its own transaction is causing a delay. You need to ensure that
the service is configured to process multiple orders in one transaction. What should you do?

Which attribute should you apply to the MessageProcessor class?

You are modifying an existing Windows Communication Foundation (WCF) service that is
defined as follows. [ServiceContract] public interface IMessageProcessor {
[OperationContract] void ProcessMessage (); } public class MessageProcessor :
IMessageProcessor { public void ProcessMessage () { & Sub mitOrder (); & } } SubmitOrder
makes a call to another service. The ProcessMessage method does not perform as
expected under a heavy load. You need to enable processing of multiple messages. New
messages must only be processed when the ProcessMessage method is not processing
requests, or when it is waiting for calls to SubmitOrder to return. Which attribute should you
apply to the MessageProcessor class?

You need to implement the error handling code for SearchMessages and create a new channel on the client only i

A Windows Communication Foundation (WCF) service implements the following contract.
(Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface
IDataAccessService 03 { 01 [OperationContract] 05 void PutMessage(string message); 06
07 [OperationContract] 08 [FaultContract(typeof(TimeoutFaultException)) ] 09
[FaultContract(typeof(FaultException) ) ] 10 stringf] SearchMessages(string search); 11 }
The implementation of the SearchMessages method throws TimeoutFaultException
exceptions for database timeouts. The implementation of the SearchMessages method also
throws an Exception for any other issue it encounters while processing the request. These
exceptions are received on the client side as generic FaultException exceptions. You need
to implement the error handling code for SearchMessages and create a new channel on the
client only if the channel faults. What should you do?

You need to retrieve the debug version of the service JavaScript

An ASP NET application hosts a RESTful Windows Communication Foundation (WCF)
service at /ServiceslContoso.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/javaScript’ srcsIServices/Contoso. svc/js” /> You need to retrieve the debug version of
the service JavaScript. What should you do?

You need to create a channel factory that can send messages to the endpoint listening at net.pipe://localhost/

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.
IContosoService ” name=” netTcp ” / > <endpoint address=”
net.pipe://localhost/ContosoService ” binding=” netNamedPipeBinding ” contract=” Contoso.
IContosoService ” 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

Which code segment should you use?

You are consuming a Windows Communication Foundation (WCF) service. The service
interface is defined as follows. [DataContract(Namespace = “”)] public class Item { … }
[ServiceContract(Namespace = “”)] public interface ICatalog { [OperationContract]
[WebInvoke(Method = “POST”, UriTemplate = “/Item”)] Item UpdateItem(Item item); } The
client application receives a WebResponse named response with the response from the
service. You need to deserialize this response into a strongly typed object representing the
return value of the method. Which code segment should you use?

You need to enable logging to verify that the messages from the client are signed and encrypted

A Windows Communication Foundation (WCF) service only accepts messages that are
signed and encrypted. A client application is not receiving expected responses from the
service. You need to enable logging to verify that the messages from the client are signed
and encrypted. You also need to see what each message looks like before the message
body is deserialized intoa .NET object. What should you do?

you need to configure the service to log messages received from the client

A Windows Communication Foundation (WCF) application exposes a service as a SOAP
endpoint for consumption by cross-platform clients. During integration testing, you find that
one of the clients is not generating the correct messages to the WCF application. In order to
debug the issue and fix the communication, you need to configure the service to log
messages received from the client. What should you do?


Page 7 of 23« First...56789...20...Last »