What should you do?
A Windows Communication Foundation (WCF) service is generating a separate namespace declaration for each body member of a message contract,
even though all body members share the same namespace.
You need to simplify the XML representation of your message contract so that the namespace is only declared once. What should you do?
What should you recommend?
You are designing a Windows Forms application that allows users to search a product catalog and place orders. You have the following requirements:
Display a progress indicator while the application is searching the catalog.
Ensure that users can cancel search operations.
You need to recommend an approach that meets the requirements.
What should you recommend?
What should you do?
You are implementing a Windows Communication Foundation (WCF) service contract named lContosoService in a class named ContosoService.
The service occasionally fails due to an exception being thrown at the service.
You need to send the stack trace of any unhandled exceptions to clients as a fault message. What should you do?
Which container should you recommend?
You are designing a Windows Presentation Foundation (WPF) application.
The WPF application must always display real-time status information while the user is working in the WPF application.
You need to recommend a container for displaying the status information.
Which container should you recommend?
Which XML segment should you add to the system.serviceModel/diagnostics/messageLogging/filters configuration e
A Windows Communication Foundation (WCF) service has the following contract.
[ServiceContract(Namespace=”http://contoso.com”)]
public interface IShipping
{
[OperationContract]
string DoWork(int id);
}
This is one of several service contracts hosted by your application. All endpoints use SOAP 1.2 bindings with WS-Addressing 1.0.
The System.ServiceModel.MessageLogging trace source in the system.diagnostics configuration section is configured with one listener.
You need to make sure that only the messages that are returned from the DoWork operation are logged.
Which XML segment should you add to the system.serviceModel/diagnostics/messageLogging/filters configuration element?
What should you use?
You are designing an application by using Windows Presentation Foundation (WPF) and Microsoft .NET Framework 4.
The application will run on Windows 7-based kiosks that are located indoors and outdoors. The kiosk displays have a photo sensor that will update the application with the current ambient luminosity.
You need to ensure that the user interface (UI) of the application dynamically changes the application theme based on the ambient luminosity.
What should you use?
What should you do?
Your Windows Communication Foundation (WCF) client application uses HTTP to communicate with the service.
You need to enable message logging and include all security information such as tokens and nonces in logged messages.
What should you do?
Which container should you recommend?
You are designing a Windows Presentation Foundation (WPF) application that displays thumbnail images of photographs. The thumbnails are arranged in rows and columns.
The number of columns must automatically update based on the size of the application window.
You need to recommend a container for displaying all the thumbnail images at the same size.
Which container should you recommend?
What should you do?
You are integrating a Windows Communication Foundation (WCF) service within an enterprise-wide Service Oriented Architecture (SOA).
Your service has the following service contract:
[ServiceContract]
public class CreditCardConfirmationService
{
[OperationContract]
boolean ConfirmCreditCard(string ccNumber);
double OrderAmount(int orderNumber);
}
You need to allow the code in the ConfirmCreditCard method to participate automatically in existing transactions.
If there is no existing transaction, a new transaction must be created automatically. What should you do?
What should you recommend?
You are designing a Windows Presentation Foundation (WPF) application. Business entity objects are bound to controls on each data entry window.
The WPF application must meet the following requirements:
Display a watermark in each empty text box.
Display watermarks in a lighter color than user entries.
The watermark code must be reusable with other user interface controls. You need to recommend an approach for creating the watermarks.
What should you recommend?