You are creating a client application and configuring it to call a Windows Communication Foundation (WCF) service. When the application is deployed, it will be configured to send all messages to a WCF routing service.
You need to ensure that the application can consume the target service after the application is deployed.
What should you do?
A. In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the router service.An ASP.NET application hosts a RESTful Windows Communication Foundation (WCF) service at /Services/Contoso.svc . The service provides a JavaScript resource to clients. You have an explicit reference to the JavaScript in your page
markup as follows.
You need to retrieve the debug version of the service JavaScript.
What should you do?
A. In theA 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?
A. //addr:Action[text() = 'http://contoso.com/IShipping/DoWorkResponse']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
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?
A. Change line 03 as follows. typeof(l RequestReplyRouter),You develop a Windows Communication Foundation (WCF) service that is hosted by using Windows Activation Services (WAS).
You need to configure the service to accept requests that use the TCP/IP protocol.
What should you do? (Each correct answer presents part of the solution. Choose two.)
A. Run the aspnet_regiis executable to enable TCP/IP service activation.You are creating a Windows Communication Foundation (WCF) service that is implemented as folks. (Line numbers are included for reference only.)
01 02 03Public Class OrderService 04 05eCNperationCortracto()> O6Putdic Sub Submit Order(ByVal anOrder As Order) 07 08Try 09. 10Catch ex As D wide By Zero Exception 11 12End Try 13End Sub 14 1 5End Class You need to ensure that the sack trace details of the exception are not included in the error information sent to the client. What should you do?
B. Replace line 11 with the following line. Throw New FaultException(C Order)(anOrder, exToSthng0)d
C. After line 05, add the following line. `cFaultContract(GetType(FautException(Of Order)))> Replace line 11 with the following line. Throw ex
D. After line 05, add the following line. Replace line 11 with the following line. Throw New FaultException(CX Order)( anOrder, "Divide by zero exception")
You develop a Window Communication Foundation (WCF) service.
You have the following requirements:
Create a data contract to pass data between client applications and the service. Create the data that is restricted and cannot pass between client applications and the service.
You need to implement the restricted data members.
Which member access modifier should you use?
A. ProtectedA Windows Communication Foundation (WC9 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 impemented as follows.
(Line numbers are included for reference only.)
01 Dim host As ServiceHost =
02 New ServiceHost(GetType(RoutingService))
03 hostAddServiceEndpoint(
04 GetType(lSimplexDatagramRouter),
05 New NetTcpBinding0, "net.tcp://localhostlRouter"
06)
07 Dim lep As List(Of ServiceEndpoint) =
08 New List(Of SenviceEndpointx)
09 lepAdd(
10 New ServiceEndpoint(
11 CortractDescription.GetContract(
12 GetType(lSimplexDatagramRouter)
13)1
14 New NetTcpBinding0,x
15 New EndpointAddressf'nettcp://localhost:8080/Logger')
16)
17)
18 Dim rc As RoutingConfiguration = New RoutingConfiguration()
19 rc . FitterTable.Add(New Matctf4llMessageFilter0, lep)
20 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?
A. Change line 04 as follows. Get Type(lRequestReplyRouter),You are developing a Windows Communication Foundation (WCF) service that returns location information for authorized law enforcement agencies. The service contract is as follows.

Users are authenticated and impersonated. The system uses ASP.NET roles. The members of law enforcement are members of the LawEnforcement role.
You need to ensure that only members of the LawEnforcement role can call these methods.
What are two possible ways to achieve this goal (Each correct answer presents a complete solution? Choose two.)
A. Add a PrincipalPermissionAttribute to each method that should be available only to members of law enforcement. Set its SecurityAction to Demand and set the role equal to LawEnforcement.You are developing a Windows Communication Foundation (WCF) service that reads messages from a public non-transactional MSMQ queue.
You need to configure the service to read messages from the failed-delivery queue.
Which URI should you specify in the endpoint configuration settings of the service?
A. net.msmq://localhost/msmq$;FailedMessagesNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-513 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.