PrepAway - Latest Free Exam Questions & Answers

Category: 70-513

Exam 70-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4

Which two message filters should you add to the router?

A Windows Communication Foundation (WCF) solution uses two services to manage a shopping cart.
Service A processes messages containing line items that total between $0 and $500.
Service B processes messages containing line items that total more than $500. All messages are of equal importance to the business logic.
You need to route incoming messages to the appropriate services by using WCF routing.
Which two message filters should you add to the router? (Each correct answer presents part of the solution. Choose two.)

What should you do?

You are creating a Windows Communication Foundation (WCF) service that responds using plain-old XML (POX).
You have the following requirements:
* You must enable the /catalog.svc IItems operation to respond using the POX, JSON, or ATOM formats.
* You also must ensure that the same URL is used regardless of the result type.
* You must determine the response format by using the Accepts HTTP header.

What should you do?

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 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 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 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?

Which attribute should you add to the class that is implementing the service?

You are creating a Window Commnunication Foundation (WCF) service application.
The application needs to service many clients and requests simultaneously.
The application also needs to ensure subsequent individual client requests provide a stateful conversation.
You need to configure the service to support these requirements. Which attribute should you add to the class that is implementing the service?


Page 10 of 15« First...89101112...Last »