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)

which code segment should you use?

The following is an example of a SOAP envelope. <s:Enelope
xmlns:se’http://schemas.xmlsoporg/soap/envelopef’> <s: Header> <h:Storeld
xmlns:he”http:/!www.contoso.com”s 6495 <Ih: Storeld> </s:Header> <s:Body>
<CheckStockRequest xmlnsehttp://wwwcorIosocom”> <ltemld>2469 <Iltenld>4
</CheckStoc kRequest> <Is: Body> <Is: Envelope> You need to create a message contract
that generates the SOAP envelope. 1 which code segment should you use?

You need to create a message contract that generates the SOAP envelope Which code segment should you use?

The following is an example of a SOAP envelope: <s:Enelope xmlns:sshttp Ilschemas
xmlso org/soap/enveloper> <s: Header> <h:Stoweld xmlns:hzmttp:/twww.contoso.com”>
6495 <!h: Storeld> <Is: Header> <s: Bodys <CheckStockRequet
xmlns=”httpJIwww.contoso.comy> <Itemlh2469 c/ttemmdd> </CheckStockRequest> <Is:
Bodys <Is: Erwelope> You need to create a message contract that generates the SOAP
envelope Which code segment should you use?

You need to modify PostData so that it can receive any SO6P message which code segment should you use

You are developing a client that sends several types of SOP? messages to a Windows
Communication Foundation (WCF) service method named PostData PostData is currently
defined as follows: [OperationContract? void PostData(Order data); You need to modify
PostData so that it can receive any SO6P message which code segment should you use

You need to ensure that the router can handle one-way and request-reply operations

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 rC. 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 need to ensure that the router can handle one-way and request-reply operations

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

You need to update the client so that it can communicate with the server what should you do

A Windows Communication Foundation (WCF) service listens for messages at net
tcpilwwwcontoso.comMMyService. It has a logical address at
http/Iwwwcontosocorn)MyService The configuration for the WCF client is as follows
<endpoint addressrhTttpllwwwcontosocom/MyService” bindinge”netTc pBinding”
bindingConfiguraton-NetTc pBinding_lMyService contract=”ServiceReference 1. IMyServce’
name=’NetTcpBinding_lllyService”/>v The generated configuration does not provide enough
information for the client to communicate with the server. You need to update the client so
that it can communicate with the server what should you do


Page 22 of 23« First...10...1920212223