You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostD

题目

You are developing a client that sends several types of SOAP messages to a Windows Communication Foundation (WCF) service method named PostData. PostData is currently defined as follows:[OperationContract]void PostData(Order data);You need to modify PostData so that it can receive any SOAP message. Which code segment should you use?()

  • A、[OperationContract(IsOneWay=true, Action="*", ReplyAction="*")] void PostData(Order data);
  • B、[OperationContract(IsOneWay=true, Action="*", ReplyAction = "*")] void PostData(BodyWriter data);
  • C、[OperationContract] void PostData(BodyWriter data);
  • D、[OperationContract] void PostData(Message data);

相似考题
更多“You are developing a client that”相关问题
  • 第1题:

    You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service.(Line numbers are included for reference only.)01 BasicHttpBinding myBinding = new BasicHttpBinding();02 EndpointAddress myEndpointAddress = new EndpointAddress("http://contoso.com/TaxService.svc");03 ...04 ITaxService client = channelFactory.CreateChannel();05 string data = client.GetData(1);You need to consume the service.Which code segment should you insert at line 03?()

    A. var channelFactory = new ChannelFactory();

    B. var channelFactory = new ChannelFactory(myBinding);

    C. var channelFactory = new ChannelFactory(myBinding, myEndpointAddress);

    D. var channelFactory = new ChannelFactory("http://contoso.com/TaxService.svc");


    参考答案:C

  • 第2题:

    Which statement is correct about defining an Infranet Enforcer for use as a RADIUS Client? ()

    • A、You do not need to configure a RADIUS client policy.
    • B、You must know the exact model number of the Infranet Enforcer.
    • C、You must specify the NACN password of the device in the RADIUS client policy.
    • D、You do not need to designate a location group to which the Infranet Enforcer will belong.

    正确答案:A

  • 第3题:

    You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that stores and retrieves client information by means of a unique account number.You create a custom collection class, which implements the IDictionary interface,named ClientDictionary. The following code have been included into the new application. //Create Client objects Client c1 = new Client ("AReid", "Andy Reid", Status.Current); Client c2 = new Client ("DAustin", "Dean Austin", Status.New); //Create ClientDictionary object IDictionary cData = new ClientDictionary (); cData.Add ("10001", c1); cData.Add ("10002", c2); You use the same method to add other Client objects to the collection. You need to ensure that you are able to retrieve client information associated with the account number 10111.What should you do?()

    • A、 Use the following code: Client foundClient;foundClient = (Client) cData.Find ("10111"); 
    • B、 Use the following code: Client foundClient;if (cData.Contains ("10111")) foundClient = cData ["10111"]; 
    • C、 Use the following code: Client foundClient;if (cData.Contains ("10111"))foundClient =(Client) cData ["10111"]; 
    • D、 Use the following code: Client foundClient;foreach (string key in cData.Keys {if (key == "10111")foundClient = (Client) cData.Values ["10111"]; }

    正确答案:C

  • 第4题:

    You have a single Active Directory directory service domain. You use a Group Policy object (GPO) to apply security settings to your client computers. You configure the startup type for system services settings in a new GPO, and you link the GPO to an organizational unit (OU).  You discover that the startup type for system services on one of the client computers has not been updated. You need to ensure that the Group Policy settings are applied to the client computer. What should you do?()

    • A、  Restart the client computer.
    • B、 Instruct the user to log off and then log on to the client computer.
    • C、 On the client computer, run the Gpupdate.exe command with the /Force parameter.
    • D、 On the client computer, run the Gpupdate.exe command with the /Target:computer parameter.

    正确答案:A

  • 第5题:

    You are the network administrator for The network consists of a single Active Directory domain named All network servers run Windows Server 2003, and all client computers run Windows XP Professional. You create a shared folder named Client Docs on a member server named TestKing13. Client Docs will store project documents. You configure shadow copies for the volume containing Client Docs. You need to enable client computers to access previous version of the documents in Client Docs. What should you do?()

    • A、Create a Group Policy object (GPO) to enable Offline Files on all client computers.
    • B、On each client computer, customize the view for Client Docs to use the Documents (for any file type) folder template.
    • C、Create a Group Policy object (GPO) that installs the Previous Versions client software on all client computers.
    • D、Assign the Allow - Full Control permission on Client Docs to all users.
    • E、On each client computer, install the Backup utility and schedule a daily backup.

    正确答案:C

  • 第6题:

    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 TranvelServiceClient( );You need to ensure that a callback is received when the GetFlight operation is called asynchronously. Which code segment should you use?()

    • A、client.BeginGetFlight(GetFlightCallback, null); client.GetFlight();
    • B、client.GetFlight(); client.BeginGetFlight(GetFlightCallback, null);
    • C、client.GetFlightCompleted += new EventHandler(GetFlightCallback); client.GetFlightAsync();
    • D、IAsyncResult asyncResult = client.BeginGetFlight(GetFlightCallback, client); client.EndGetFlight(asyncResult);

    正确答案:C

  • 第7题:

    You work as the exchange administrator at TestKing.com. The TestKing.com network contains anExchange Server 2010 Organization. TestKing.com has its headquarters in Stockholm where you arelocated. You are responsible for managing the Exchange network for TestKing.com. The Exchange organization contains two Client Access Servers. You are in the process of deploying aMicrosoft Internet Security and Acceleration (ISA) server. During the course of day you receive aninstruction from the CIO to recommend a high availability solution for the Client Access servers formanagment. Management wants OWA connections to be available in the event of one Client Access Server failing as well as ensuring that the client access services is accessible in a fail on the Client AccessServer. What should you do?()

    • A、You should recommend the deployment of Windows Network Load Balancing.
    • B、You should recommend publishing every Client Access server in a separate publishing rule.
    • C、You should recommend publishing the two Client Access servers in a single publishing rule as a Web server farm.
    • D、You should recommend the deployment of a hardware load balancer.

    正确答案:C

  • 第8题:

    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 DuplexClientBase<TChannel >.
    • D、On the client, use GetCallbackChannel<T >.

    正确答案:C

  • 第9题:

    单选题
    Your virtual environment includes Windows Server 2008 R2 Hyper-V servers. The test and development teams are developing a distributed application. The application requires a domain controller, a server that runs Microsoft SQL Server, an application server, and a client computer. The application uses pass-through authentication. You need to ensure that at the time of a failure, the test team can reproduce the error and provide the application in the state in which it existed when the error occurred to the development team for continued analysis. You must achieve this goal while minimizing storage requirements.    What should you do?()
    A

    Snapshot and export all servers

    B

    Snapshot and export only the application server

    C

    Snapshot the application server, and back up the SQL Server database

    D

    Snapshot and export only the domain controller and the client computer


    正确答案: A
    解析: 暂无解析

  • 第10题:

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


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    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 TranvelServiceClient( );You need to ensure that a callback is received when the GetFlight operation is called asynchronously. Which code segment should you use?()
    A

    client.BeginGetFlight(GetFlightCallback, null); client.GetFlight();

    B

    client.GetFlight(); client.BeginGetFlight(GetFlightCallback, null);

    C

    client.GetFlightCompleted += new EventHandler(GetFlightCallback); client.GetFlightAsync();

    D

    IAsyncResult asyncResult = client.BeginGetFlight(GetFlightCallback, client); client.EndGetFlight(asyncResult);


    正确答案: A
    解析: 暂无解析

  • 第12题:

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

    D

    On the client, use GetCallbackChannel<T >.


    正确答案: D
    解析: 暂无解析

  • 第13题:

    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

  • 第14题:

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

    正确答案:C

  • 第15题:

    You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service.(Line numbers are included for reference only.) 01 BasicHttpBinding myBinding = new BasicHttpBinding( ); 02 EndpointAddress myEndpointAddress = new EndpointAddress("http://contoso.com/TaxService.svc"); 03 ... 04 ITaxService client = channelFactory.CreateChannel( ); 05 string data = client.GetData(1); You need to consume the service. Which code segment should you insert at line 03?()

    • A、var channelFactory = new ChannelFactory();
    • B、var channelFactory = new ChannelFactory(myBinding);
    • C、var channelFactory = new ChannelFactory(myBinding, myEndpointAddress);
    • D、var channelFactory = new ChannelFactory("http://contoso.com/TaxService.svc");

    正确答案:C

  • 第16题:

    You are designing a remote administration solution that meets business requirements. You need to specify client or server software that will be required. What should you do?()

    • A、Ensure that all client computers have a graphical Telnet client installed
    • B、Ensure that all client computers have the Remote Desktop Connection client software installed
    • C、Ensure that all server computers have RCONSOLE installed and that it is configured to start automatically
    • D、Ensure that all server computers have Remote Administration (HTML) installed

    正确答案:B

  • 第17题:

    You are developing a Windows Communication Foundation (WCF) client application. The client application contains the following code. [ServiceContract] public interface ISocialStatus { [OperationContract] [WebInvoke(UriTemplate = "/statuses/update.xml?status-{text}")] void UpdateStatus(string text); } public class SocialClient : ClientBase, ISocialStatus { ... } The configuration file contains the following lines. binding="webHttpBinding" contract="SocialApp.ISocialStatus" bindingConfiguration="BindingConfig" /> You need to ensure that the service is consumed. Which code segment should you use?()

    • A、var client = new SocialClient("SocialClient"); client.Endpoint.Behaviors.Add(new WebHttpBehavior());
    • B、var client = new SocialClient("SocialClient"); client.Endpoint.Behaviors.Add(new WebScriptEnablingBehovior());
    • C、var client = new SocialClient("POST"); client.Endpoint.Behaviors.Add(new WebHttpBehovior());
    • D、var client = new SocialClient("POST"); client.Endpoint.Behaviors.Add(new WebScriptEnablingBehavior());

    正确答案:A

  • 第18题:

    You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names of Certkiller .com’s clients that are situated in various geographical areas. These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?()

    • A、 IDictionary
    • B、 IComparable
    • C、 IComparer
    • D、 IEqualityComparer

    正确答案:B

  • 第19题:

    You are developing an ASP.NET Web page. You add a data-bound GridView control. The GridView contains a TemplateField that includes a DropDownList. You set the GridViews ClientIDMode property to Static, and you set the ClientIDRowSuffix property to ProductID. You need to be able to reference individual DropDownList controls from client-side script by using the ProductID. What should you set the ClientIDMode property of the DropDownList to? ()

    • A、AutoID
    • B、Static
    • C、Inherit
    • D、Predictable

    正确答案:D

  • 第20题:

    多选题
    A customer is developing a custom application that involves a multistep provisioning process for a new account. There is a custom Java client application that is generating multiple JMS messages as part of the process and sending them to the WebLogic tier where they are processed.    Which three steps must you take to implement the solution to allow for scalability and parallel processing of multiple simultaneous provisioning requests while ensuring messages for an individual process are not delivered out of order?()
    A

    Update the client application that is creating the JMS messages to use Unit of Work.

    B

    Configure a WebLogic Cluster for Distributed JMS.

    C

    Update the client application that is creating the JMS messages to use Unit of Order.

    D

    Enable XA Transactions on the JMS Connection Factory used by the client application.

    E

    Enable Load Balancing on the JMS connection factory used by the client application.


    正确答案: E,A
    解析: 暂无解析

  • 第21题:

    单选题
    You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names of Certkiller .com’s clients that are situated in various geographical areas. These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?()
    A

     IDictionary

    B

     IComparable

    C

     IComparer

    D

     IEqualityComparer


    正确答案: C
    解析: 暂无解析

  • 第22题:

    单选题
    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
    解析: 暂无解析

  • 第23题:

    单选题
    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
    解析: 暂无解析