多选题You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML.   Which two actions should you perform?()AAdd the WebGet attribute to the service contract.BSet WebOperationContext.Current.OutgoingRequest.ContentType to text/xml in the GetProduct method.CAdd the WebInvoke attribute to the service contract.DSet WebOperationContext.Current.OutgoingResponse.ContentType to text/xml in the GetProduct method.

多选题
You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML.   Which two actions should you perform?()
A

Add the WebGet attribute to the service contract.

B

Set WebOperationContext.Current.OutgoingRequest.ContentType to text/xml in the GetProduct method.

C

Add the WebInvoke attribute to the service contract.

D

Set WebOperationContext.Current.OutgoingResponse.ContentType to text/xml in the GetProduct method.


参考解析

解析: 暂无解析

相关考题:

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. You name the service MovieService in the Movie namespace. The service is hosted in Microsoft Internet Information Services (IIS). You copy the assembly containing the service to the bin folder in the virtual directory path.You need to set up the URI that is mapped to the service.What should you do?()A.B.C.D.

You are developing a Windows Communication Foundation (WCF) service. The following code defines and implements the service. (Line numbers are included for reference only.)01 [ServiceContract(SessionMode = SessionMode.Allowed)]02 public interface ICatchAll03 {04 [OperationContract(IsOneWay = false, Action = *, ReplyAction = *)]05 Message ProcessMessage(Message message);06 }0708 public class CatchAllService : ICatchAll09 {10 public Message ProcessMessage(Message message)11 {1213 ...14 return returnMsg;15 }16 }You need to ensure that two identical copies of the received message are created in the service.Which code segment should you insert at line 12?()A.B.C.D.

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 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. MaxRetryCountB. MaxTransferWindowSizeC. MaxPendingChannelsD. InactivityTimeout

You create a Windows Communication Foundation (WCF) service. It is deployed on Microsoft Internet Information Services (IIS) with an application pool running as Network Service. You enable WMI tracing before launching the service. Your IT support staff adds WMI data collection through ASP.NET WMI tracing.You need to restrict the collection of WMI data to a privileged account.What should you do in WMI Control in the Computer Management console?()A.B.C.D.

You are developing a Windows Communication Foundation (WCF) service. You establish that the largest size of valid messages is 8,000 bytes. You notice that many malformed messages are being transmitted.Detailed information about whether each message is malformed must be logged.You need to ensure that this information is saved in XML format so that it can be easily analyzed.What should you add to the service configuration file?()A.B.C.D.

You are developing a Windows Communication Foundation (WCF) service. The service configuration file has a element defined. You need to ensure that all security audit information, trace logging, and message logging failures are recorded.Which configuration segment should you add to the element?()A.B.C.D.

You are developing a Windows Communication Foundation (WCF) service. The service operation takes a customer number as the only argument and returns information about the customer. The service requires a security token in the header of the message. You need to create a message contract for the service.Which code segment should you use?()A.B.C.D.

You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?() A. NetTcpContextBindingB. BasicHttpContextBindingC. NetTcpBindingD. NetMsmqBinding

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.

A WCF service code is implemented as follows. (Line numbers are included for reference only)01 [ServiceContract]02 [ServiceBehavior(InstanceContextMode =03 InstanceContextMode.Single)]04 public class CalculatorService05 {06 [OperationContract]07 public double Calculate(double op1, string op, double op2)08 {09 }10 }You need to increase the rate by which clients get the required response from the service. What are two possble ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)()A.B.C.D.

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.

You are developing a WCF service. The service includes an operation names GetProduct. You need to ensure that GetProduct will accept a POST request and will indicate that the returned data is XML.   Which two actions should you perform?()A、Add the WebGet attribute to the service contract.B、Set WebOperationContext.Current.OutgoingRequest.ContentType to "text/xml" in the GetProduct method.C、Add the WebInvoke attribute to the service contract.D、Set WebOperationContext.Current.OutgoingResponse.ContentType to "text/xml" in the GetProduct method.

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

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.

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 developing a Windows Communication Foundation (WCF) service. The service needs to access out-of-process resources.You need to ensure that the service accesses these resources on behalf of the originating caller. What should you do?()ASet the value of ServiceSecurityContext.Current.WindowsIdentity.ImpersonationLevel to TokenlmpersonationLevel.ImpersonationBSet the value of ServiceSecurityContext.Current.Windowsldentity.ImpersonationLevel to TokenlmpersonationLevel.DelegationCSet the PrincipalPermissionAttribute on the service contract and update the binding attribute in the endpoint element of the configuration file to wsHttpBindingDSet the PnncipalPermissionAttribute on the service contract and update the bindingConfiguration attribute in the endpoint element of the configuration file to wsHttpBinding

单选题You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()AICommunicationObjectBIExtensionCIExtensibleObjectDIExtensibleDataObject

单选题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?()AChannelFactoryB ServiceHostCClientRuntimeDCommunicationObject

单选题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 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?()AMaxRetryCountBMaxTransferWindowSizeCMaxPendingChannelsDInactivityTimeout

单选题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?()AYou should add an assembly reference to the project.BYou should add a project reference to the project.CYou should add a Web reference to the project.DYou should add a service reference to the project.

单选题You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()ANetTcpContextBindingBBasicHttpContextBindingCNetTcpBindingDNetMsmqBinding

单选题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).

单选题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?()AOn the OperationContractAttribute, set the AsyncPattern property value to true.BOn the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.COn the client, create a proxy derived from DuplexClientBaseTChannel .DOn the client, use GetCallbackChannelT .