You are building a client for a Windows Communication Founda

题目
单选题
You are building a client for a Windows Communication Foundation (WCF) service. You need to create a proxy to consume this service. Which class should you use?()
A

ChannelFactory

B

ServiceHost

C

ClientRuntime

D

CommunicationObject

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()

A. TimeoutException

B. FaultException

C. DivideByZeroException

D. FaultException<SalesFault>


参考答案:B

第2题:

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.The service in Building2 will be configured using the following discovery 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? ()

A.

B.

C.

D.


参考答案:B

第3题:

You are developing a Windows Communication Foundation (WCF) service.You enable message logging, trace listeners, activity propagation, and tracing on the trace sources.You have the following code segment in the client application. (Line numbers are included for reference only.)01 Guid multiCallActivityId = Guid.NewGuid();02 TraceSource ts = new TraceSource("Multicall");03 Trace.CorrelationManager.ActivityId = multiCallActivityId;04You encounter errors when your client application consumes the service.You need to ensure that your client application can correlate tracing information with the service.Which code segment should you add at line 04?()

A.

B.

C.

D.


参考答案:C

第4题:

Your Windows Communication Foundation (WCF) client application uses HTTP to communicate with the service.You need to enable message logging and include all security information such as tokens and nonces in logged messages.What should you do?()

A.

B.

C.

D.


参考答案:D

第5题:

A Windows Communication Foundation (WCF) service only accepts messages that are signed and encrypted. A client application is not receiving expected responses from the service. You need to enable logging to verify that the messages from the client are signed and encrypted. You also need to see what each message looks like before the message body is deserialized into a NET object. What should you do?()

A.

B.

C.

D.


参考答案:C

第6题:

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?()

A.

B.

C.

D.


参考答案:B

第7题:

You want to debug the Windows Communication Foundation (WCF) client and server interaction through message and application tracing.You need to correlate traces generated on the client and the server. Which XML segment should you add to the system.diagnostics configuration element in the client and server application configuration file?()

A.

B.

C.

D.


参考答案:A

第8题:

You are developing a Windows Communication Foundation (WCF) service. Client applications require reliable sessions to access the service.Users report that they receive ServerTooBusyException errors when their client application tries to establish a session. You need to ensure that the service can handle a minimum of 30 client connection requests.Which ReliableSessionBindingElement property should you configure?()

A. MaxRetryCount

B. MaxTransferWindowSize

C. MaxPendingChannels

D. InactivityTimeout


参考答案:C

第9题:

A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.You need to implement a client that logs these notifications. Which class should you use?()

A. AnnouncementService

B. AnnouncementClient

C. DiscoveryClient

D. HttpListener


参考答案:A

第10题:

You are the network administrator for TestKing. All servers run Windows 2003. All client computers run Windows XP Professional. You log on to a server named Testking15 by using the local Administrator account. You start the installation of a new server application. After you start the installation, you return to your office, which is located in another building. You need to find out the status of the installation that is in progress on Testking15. What should you do?()

  • A、Select the Remember server connections option in Terminal Service Manager.
  • B、Use Terminal Service Manager to connect to Testking15.
  • C、Use Remote Assistance from a client computer.
  • D、Use the Remote Desktop Client to connect to the console session on Testking15

正确答案:D

更多相关问题