网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

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.

参考答案

更多 “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.” 相关考题
考题 You are developing a Windows Communication Foundation (WCF) service. You enable logging in the configuration file.The opening tag is defined as follows.messagelogging br= logentiremessage=true logMalformedMessages=truelogMessagesAtServiceLevel=truelogMessagesAtTransportLevel=truemaxMessagesToLog=20You need to ensure that logging is implemented so that only messages with SOAP headers are logged.What should you add to the filters element of the application configuration file?()A.B.C.D.

考题 You develop a Windows Communication Foundation (WCF) service. It is used exclusively as an intranet application and is currently unsecured. You need to ensure that the service meets the following requirements: The service now must be exposed as an Internet application. The service must be secured at the transport level. Impersonation and delegation cannot be enabled.What should you use? ()A. basicHttpBinding and HTTPB. basicHttpBinding and KerberosC. wsHttpBinding and KerberosD. wsHttpBinding and HTTPS

考题 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.

考题 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.0B. Windows Process Activation Services (WAS)C. A Windows Forms applicationD. A Windows Service

考题 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.

考题 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.

考题 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$FailedMessagesB. net.msmq://localhost/msmq$DeadLetterC. net.msmq://localhost/system$DeadXactD. net.msmq://localhost/system$DeadLetter

考题 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.

考题 A Windows Communication Foundation (WCF) solution exposes the following contract over an HTTP connection.[ServiceContract]public interface IDataService{ [OperationContract] string GetData();}Existing clients are making blocking calls to GetData. Calls to GetData take five seconds to complete.You need to allow new clients to issue non-blocking calls to get the data, without breaking any existing clients. What should you do?()A.B.C.Generate a proxy class with asynchronous methods and use it for the new clientsD. Add a new endpoint to the service that uses a full-duplex binding and use it for the new clients.

考题 A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.You must ensure that the client application can interact with the WCF service. What should you do?()A. On the OperationContractAttribute, set the AsyncPattern property value to true.B. On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.C. On the client, create a proxy derived from DuplexClientBaseTChannel .D. On the client, use GetCallbackChannelT .

考题 You are designing a Windows Azure application.   The application includes processes that communicate by using Windows Communications Foundation (WCF) services.  The WCF services must support streaming.  You need to recommend a host for the processes and a WCF binding.   Which two actions should you recommend?()A、 Host the processes in web roles.B、 Host the processes in worker roles.C、 Use NetTcpBinding for the WCF services.D、 Use WSHttpBinding for the WCF services.

考题 A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service. You must ensure that the client application can interact with the WCF service. What should you do? ()A、 On the OperationContractAttribute, set the AsyncPattern property value to True.B、 On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client. For interactive and self-paced preparation of exam 70-513, try our practice exams. Practice exams also include self assessment and reporting features!C、 On the client, create a proxy derived from DuplexClientBase(Of TChannel).D、 On the client, use GetCallbackChannel(Of T).

考题 You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  This application will be part of a solution that contains a Windows Communication Foundation (WCF) service project. The Web application will be used to make calls to a service identified in theWCF service project. Management is planning to host the Web application on a separate serverfrom the WCF service. They want the WCF service to perform remotely. You need to add areference to the WCF service.  What should you do?()A、You should add an assembly reference to the project.B、You should add a project reference to the project.C、You should add a Web reference to the project.D、You should add a service reference to the project.

考题 Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders. The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay. You need to ensure that the service is configured to process multiple orders in one transaction. What should you do? ()A、Use service behavior and set the maxConcurrentCalls attribute.B、Use endpoint behavior and set the maxBatchSize attribute.C、Use endpoint behavior and set the maxPendingReceives attribute.D、Use endpoint behavior.

考题 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、ChannelFactoryB、 ServiceHostC、ClientRuntimeD、CommunicationObject

考题 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$FailedMessagesB、net.msmq://localhost/msmq$DeadLetterC、net.msmq://localhost/system$DeadXactD、net.msmq://localhost/system$DeadLetter

考题 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.B、In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the target service.C、In the client application, add a service reference to the router service. In the client binding configuration, specify the address of the target service.D、In the client application, add a service reference to the target service. In the client binding configuration, specify the address of the router service.

考题 You plan to host a Windows Communication Foundation (WCF) service in a Windows Azure worker role.  Custom code is necessary to initialize and configure the service endpoint.   You need to recommend the point at which the application should initialize the WCF service.  What should you recommend?()A、 When Windows Azure initializes the worker role instance.B、 When the worker role instance receives its first request.C、 When the worker role instance instantiates the WCF service.D、 When the worker role instance enters the main execution thread.

考题 A Windows Azure application includes a single-threaded worker role that has multiple instances. The worker role hosts a Windows Communication Foundation (WCF) service. Each request to the WCF service takes several seconds to complete.   You need to recommend an approach for ensuring that worker role instances do not receive requests while processing.  What should you recommend?()A、 Close the WCF endpoint.B、 Throw an exception to cancel the request.C、 Redirect incoming requests to a different worker role instance.D、 Remove the worker role instance from the load balancer rotation.

考题 You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled.You create an intermediate WCF service for logging messages sent to the primary service.The intermediate service is called via endpoint behaviour. The primary service is receiving malformed data from a client application.You need to enable inspection of the malformed data and prevent message tampering. What do you do?()A、Specify a protection level of None in the contract for the intermediate service. Disable message and transport security from the client application configuration file.B、Specify a protection level of Sign in the contract for the intermediate service. Disable transport security from the client application configuration file.C、Modify the binding on the intermediate service to use netNamedPipeBinding.D、Modify the binding on the intermediate service to use webHttpBinding.

考题 You have an existing Windows Communication Foundation (WCF) service that exposes a service contract over HTTP. You need to expose that contract over HTTP and TCP. What should you do?()A、Add a net.tcp base address to the host.B、Add an endpoint configured with a netTcpBinding.C、Add an endpoint behavior named netTcpBehavior to the existing endpoint.D、Add a binding configuration to the existing endpoint named netTcpBinding.

考题 You develop a Windows Communication Foundation (WCF) service. It is used exclusively as an intranet application and is currently unsecured. You need to ensure that the service meets the following requirements: The service now must be exposed as an Internet application. The service must be secured at the transport level. Impersonation and delegation cannot be enabled. What should you use? ()A、basicHttpBinding and HTTPB、basicHttpBinding and KerberosC、wsHttpBinding and KerberosD、wsHttpBinding and HTTPS

考题 You have an existing Windows Communication Foundation (WCF) Web service. The Web service is not responding to messages larger than 64 KB. You need to ensure that the Web service can accept messages larger than 64 KB without generating errors. What should you do?()A、Increase the value of maxReceivedMessageSize on the endpoint binding.B、Increase the value of maxRequestLength on the httpRuntime element.C、Increase the value of maxBufferSize on the endpoint binding.D、Increase the value of maxBufferPoolSize on the endpoint binding.

考题 A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.You must ensure that the client application can interact with the WCF service. What should you do?()A、On the OperationContractAttribute, set the AsyncPattern property value to true.B、On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.C、On the client, create a proxy derived from DuplexClientBaseTChannel .D、On the client, use GetCallbackChannelT .

考题 单选题You plan to host a Windows Communication Foundation (WCF) service in a Windows Azure worker role.  Custom code is necessary to initialize and configure the service endpoint.   You need to recommend the point at which the application should initialize the WCF service.  What should you recommend?()A  When Windows Azure initializes the worker role instance.B  When the worker role instance receives its first request.C  When the worker role instance instantiates the WCF service.D  When the worker role instance enters the main execution thread.

考题 单选题A Windows Azure application includes a single-threaded worker role that has multiple instances. The worker role hosts a Windows Communication Foundation (WCF) service. Each request to the WCF service takes several seconds to complete.   You need to recommend an approach for ensuring that worker role instances do not receive requests while processing.  What should you recommend?()A  Close the WCF endpoint.B  Throw an exception to cancel the request.C  Redirect incoming requests to a different worker role instance.D  Remove the worker role instance from the load balancer rotation.

考题 单选题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.0B Windows Process Activation Services (WAS)C A Windows Forms applicationD A Windows Service