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 stack trace details of the exception are not included in the error information sen

You are creating a Windows Communication Foundation (WCF) service that is implemented
as follows. (Line numbers are included for reference only.) 01|ServiceContract]
02[ServiceBehavior (includeExceptionDetàilslnFaults = true) 1 03putiic class OrderService
04{ 05[Operation Contract] 06putiic void Submit Order (Order an Order) 07{ O8try 09{ 10…
11) 12catch (DivideByZeroExcepton ex) 13{ 14 15) 16) 17) You need to ensure that the
stack trace details of the exception are not included in the error information sent to the
client. What should you do?

You need to ensure that client applications can initiate reports without waiting for status

You develop a Windows Communication Foundation (WCF) service to generate reports.
Client applications call the service to initiate report generation but do not wait for the reports
to be generated. The service does not provide any status to the client applications. The
service class is defined as follows. (Line numbers are included for reference only.) You
need to ensure that client applications can initiate reports without waiting for status. Which
two actions should you perform (Each correct answer presents part of the solution. Choose
two.)

You need to configi.re WCF to ci this method when the client calls the service with the HTTP DRETE opera on Wh

You are creating a Windows Communication Foundation (WCF) service that implements
operations in a RESTful manner. You need to add a delete operation You implement the
delete method as follows. string oid Deleteltems(string id); You need to configi.re WCF to ci
this method when the client calls the service with the HTTP DRETE opera on What should
you do?

Which scopes should you add to the client configuration file?

You create a service and deploy it on a network in a building named Building1. You will
deploy the service to Building2. The service in Building1 is configured using the following
discovery scopes. <scopes> <add scope=”http://contoso.com/Chicago/Building1″/> <add
scope=”ldap:///ou=Building1,ou=Chicago,o=contoso,c=us”/> </scopes> The service in
Building2 will be configured using the following discovery scopes. <scopes> <add

scope=”http://contoso.com/Chicago/Building2″/> <add
scope=”ldap:///ou=Building2,ou=Chicago,o=contoso,c=us”/> </scopes> You need to ensure
that the client application can discover the service in Building1 or the service in Building2.
Which scopes should you add to the client configuration file?

You need to modify the application to allow the GetServiceTime method to return the data formatted as JSON

A class named TestService implements the following interface. [ServiceContract] public
interface lTestService { [OperationContract] DateTime GetServiceTime; } TestService is
hosted in an ASP.NET application. You need to modify the application to allow the
GetServiceTime method to return the data formatted as JSON. It must do this only when the
request URL ends in /ServiceTime. What should you do?

You need to develop a definition for the operation contract that produces XML with the following structure

You are developing a Windows Communication Foundation (WCF) service that contains the
following operation contract. [OperationContract] CustomerNames GetCustomerNames();
The operation returns customer names. You need to develop a definition for the operation
contract that produces XML with the following structure. Which code segment should you
use

[ServiceContract| public interface IHelloService { [OperationContract] [VVebGet(UriTemplate = “hello?

A Windows Communication Foundation (WCF) service implements the following contract.
[ServiceContract| public interface IHelloService { [OperationContract]
[VVebGet(UriTemplate = “hello?namee{name}”)] string SayHello(string name); } The
implementation is as follows. public class HelloService: IHelloService { public string
SayHello(string name) { return “Hello “.+ name; } } The senvice is self-hosted, and the
hosting code is as follows. WebServiceHost svcHost = CreateHoseO; svcHost.OpenO;
Console. ReadLineO; SrvHost.CloseO; You need to implement CreateHost so that the
senvice has a single endpoint hosted at http://localhost:8000/HelloService which code
segment should you use?

You need to enable this service to be hosted in IIS by changing the web.config file

You are developing a Windows Communication Foundation (WCF) service that will be
hosted in Microsoft Internet Information Services (IIS) 7.0. The service must be hosted in an
IIS application named Info. You need to enable this service to be hosted in IIS by changing
the web.config file. Which XML segment should you add to the web.config file

Which message encoding should you use?

A Windows Communication Foundation (WCF) service is responsible for transmitting XML
documents between systems. The service has the following requirements: It must minimize
the transmission size by attaching the XML document as is without using escape characters
or base64 encoding. It must interoperate with systems that use SOAP but are not built on
the .NET platform. You need to configure the service to support these requirements. Which
message encoding should you use?

Which code segment should you use?

You are developing a Windows Communication Foundation (WCF) service that contains the
following code segment. [ServiceContract ] public interface ICustomerService { & } public
class CustomerService : ICustomerService { & } The service is self-hosted in a console

application. Older client applications access the service at
http://contoso.com:8080/CustomerService/V1. Newer client applications access the service
at http://contoso.com:8080/CustomerService/V2. You need to ensure that any client
application can access the service at either address. Which code segment should you use?


Page 6 of 23« First...45678...20...Last »