A Windows Communication Foundation (WCF) application exposes

题目
单选题
A Windows Communication Foundation (WCF) application exposes a service as a SOAP endpoint for consumption by cross-platform clients.During integration testing, you find that one of the clients is not generating the correct messages to the WCF application.In order to debug the issue and fix the communication, you need to configure the service to log messages received from the client.What should you do?()
A

Set an etwTracking behavior on the service and configure a listener for the System.ServiceModel trace source.

B

Set an etwTracking behavior on the service and configure a listener for the System.ServiceModel.MessageLogging trace source.

C

Enable messageLogging in the System.ServiceModel diagnostics element configuration and configure a listener for the System.ServiceModel.MessageLogging trace source.

D

Enable messageLogging in the System.ServiceModel diagnostics element configuration and configure a listener for the System.ServiceModel trace source.

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

第1题:

You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service.Which hosting environment should you choose? ()

A. Microsoft Internet Information Services (IIS) 6.0

B. Windows Process Activation Services (WAS)

C. A Windows Forms application

D. A Windows Service


参考答案:D

第2题:

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

第3题:

You are developing a Windows Communication Foundation (WCF) service that will be hosted in Microsoft Internet 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.Witch XML segment should you add to the web.config file?()

A.

B.

C.

D.


参考答案:C

第4题:

A Windows Communication Foundation (WCF) service implements the following contract. [ServiceContract] public interface IHelloService { [OperationContract(WebGet(UriTemplate="hello?name={name}"))]

A.

B.

C.

D.


参考答案:B

第5题:

You have an existing Windows Communication Foundation (WCF) service. You need to ensure that other services are notified when the service is started.What should you do?()

A.

B.

C.

D.


参考答案:D

第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题:

Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the lTimeService service interface in the TimeService class.You need to configure the service endpoint for HTTP communication. How should you define the service and endpoint tags?()

A.

B.

C.

D.


参考答案:D

第8题:

You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.The Windows Service class will inherit from ServiceBase.You need to ensure that the WCF service starts when the Windows Service is restarted.What should you do in the Windows Service class?()

A.

B.

C.

D.


参考答案:B

第9题:

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

第10题:

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

正确答案:A

更多相关问题