Online Access Free 070-513 Practice Test
| Exam Code: | 070-513 |
| Exam Name: | TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4 |
| Certification Provider: | Microsoft |
| Free Question Number: | 323 |
| Posted: | Aug 07, 2026 |
A Windows Communication Foundation (WCF) service implements a contract with one-way and requestreply operations.
The service is exposed over a TCP transport.
Clients use a router to communicate with the service. The router is implemented as follows. (Line numbers are included for reference only.)
01 ServiceHost host = new ServiceHost(typeof(RoutingService));
02 host AddServiceEndpoint(
03 typeof(lSimplexDatagramRouter),
04 new NetTcpBinding0, "net.tcp:/flocalhostlRouter"
05);
06 List <ServiceEndpoints lep new List <ServiceEndpoint>0;t
07 lep.Add(
08 new ServiceEndpoint(
09 ContractDescription.GetContract(
10 typeof(lSimplexDatagramRouter)
11),
12 new NetTcpBinding0,
13 new EndpointAddress|'nettcp://localhost: 8080/Logger")
14)
15);
16 RoutingConfiguration rc new RoutingConfigurationO;
17 FilterTable.Add(new MatchAilMessageFilterO, lep);
18 host. Description. Behaviors. Add(new RoutingBehavior(rc));
Request-reply operations are failing.
You need to ensure that the router can handle one-way and request-reply operations.
What should you do?
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 are developing a Windows Communication Foundation (WCF) REST service to provide access to a library book catalog. The following code segment defines the service contract. (Line numbers are included for reference only.)
Library patrons want the ability to search the catalog by title.
You need to ensure that the GetBookByTitle method is exposed as a service method.
Which code segment should you insert at line 04?
You are developing a Windows Communication Foundation (WCF) service to provide shopping cart support. ASP.NET compatibility mode is not enabled.
The shopping cart information must be retained across user visits to the store until the user explicitly empties the cart or submits the cart contents to order.
You need to implement the service as a DurableService.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
You are creating an application that consumes a Windows Communication Foundation
(WCF) service. The service implements the IService contract. The client application contains the CallbackHandler class, which implements IServiceCallback.
You need to ensure that a client proxy is created that can communicate with the service over a duplex channel.
Which code segment should you use?