| Exam Code/Number: | 70-513Join the discussion |
| Exam Name: | TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4 |
| Certification: | Microsoft |
| Question Number: | 323 |
| Publish Date: | Dec 04, 2026 |
|
Rating
100%
|
|
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);
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 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?
You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started. The message is defined as follows.
[MessageContract]
public class Agent
{
public string CodeName { get; set; }
public string SecretHandshake { get; set; }
}
You have the following requirements:
- The CodeName property must be sent in clear text. The service must be able to verify that the property value was not changed after being sent by the client. - The SecretHandshake property must not be sent in clear text and must be readable by the service.
What should you do?
You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started. The message is
defined as follows. <MessageContract()> Public Class Agent Public Property CodeName As String Public Property SecretHandshake As String End Class You have the following requirements:
The CodeName property must be sent in clear text. The service must be able to verify that the property value was not changed after being sent by the client.
The SecretHandshake property must not be sent in clear text and must be readable by the service.
What should you do?
You develop a Windows Communication Foundation (WCF) service.
You name the service MovieService in the Movie namespace. The service is hosted in Microsoft Internet Information Services (IIS).
You copy the assembly containing the service to the bin folder in the virtual directory path.
You need to set up the URI that is mapped to the service.
What should you do?