070-513 무료 덤프문제 온라인 액세스

시험코드:070-513
시험이름:TS: Windows Communication Foundation velopment with Microsoft .NET Framework 4
인증사:Microsoft
무료 덤프 문항수:323
업로드 날짜:2025-08-29
평점
100%

문제 1

You are developing a Windows Communication Foundation (WCF) service to replace an existing ASMX Web service.
The WCF service contains the following code segment. (Line numbers are included for reference only.)

The existing Web service returns the EmployeeID as an attribute of the EmployeeInfo element in the response XML.
You need to ensure that applications can consume the service without code changes in the client.
What should you do?

문제 2

A Windows Communication Foundation (WCF) solution uses the following contract to share a message across its clients (Line numbers are included for reference only)
01 <ServiceContract0>
02PuElic Interface ITeamMessageService
04 <OperationContractO>
05Function GetMessage() As String
06
07 <OperationContract0>
08Sub PutMessage(Byval message As String)
O9End Interface
The code for the serAce class is as follows.
10 Public Class TeamMessageService0
11 Implements lTearmt4essageService
12
1 3Dim key As Guid = Guid.NewGuid()
1 4Dim message As String = "Today's Message'
15
16PuUic Function GetMessage0As String -
1 7lmpements lTearm*AessageServiceGetMessage
18
1 9Retun String. Fommat("Message:{0) Key:{ 1}", message, key)
20End Function
21
22PubIic Sub PutMessage(ByV message As Stnng) -
23lmpements lTearrlessageService PutMessage
24
25Me message = message
26End Sub
27
28End Class
The service is self-hosted The hosting code rs as follows
29Dim host As ServiceHost =
New ServiceHost(GetType(TearrwiessageSeMce))?
3ODim binding As Basic HttpBindngt
New BasicHttpBindiig(BasicHttpSecurityMode. None) 31 host.AddServiceEndpoint(
"MyAppication lTearrtAessageService", binding
Thttp /Ilac aihost. 1 2345)
32host Open()
You need to ensure that all clients calling GetMessage will retrieve the same string, even if the message is upd(ed by clients calling PutMessage what should you do?

문제 3

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

문제 4

You are creating a Windows Communication Foundation (WCF) service that implements the following service contract.
[ServiceContract]
public interface IOrderProcessing
{
[OperationContract]
void ApproveOrder(int id);
}
You need to ensure that only users with the Manager role can call the ApproveOrder method.
What should you do?

문제 5

You are developing a client application that consumes a Windows Communication Foundation (WCF) service.
You use the svcutil.exe utility to create a proxy for the service.
You use the svcutil.exe switches that generate asynchronous calls. GetFlight is a service operation that takes no parameters and returns a string. The GetFlightCallback method must be called when the service operation returns.
You create an instance of the client proxy with the following code.
var client = new TravelServiceClient();
You need to ensure that a callback is received when the GetFlight operation is called asynchronously.
Which code segment should you use?

댓글 추가

귀하의 메일주소는 공개되지 않습니다. 필수 입력 사항은 표시되어 있습니다. *

insert code
그림의 인증번호를 입력하세요.