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 m

题目

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");

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

    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

  • 第2题:

    All servers in your environment run Windows Server 2008 R2. All client computers ru n Windows 7. Each client computer has at least 2 5 GB free disk space. You virtualize applications by using Microsoft Application Virtualization (App - V). The App - V client cache is set to 4096 MB. User profiles are virtualized and stored on a server. You ne ed to increase the size of the file system cache on a client computer to at least 10 GB. What should you do?()

    • A、Use the AppVCacheSize tool to set the maximum cache size to 10240.
    • B、Use the AppVCacheSize tool to set the minimum free disk space threshold to 1 0240.
    • C、Set the HKLM / SOFTWARE / Microsoft / SoftGrid / 4.5 / Client /AppFS/ State registry key to 10240.
    • D、Set the HKLM / SOFTWARE / Microsoft / SoftGrid / 4.5 / Client /AppFS/ FileSize registry key to 10240.

    正确答案:B

  • 第3题:

    You need to recommend a solution for deploying App2.What should you recommend?()

    • A、Deploy a new App-V package that contains App2.Stream the package to the client computers of the 10 users.
    • B、Deploy a new MED-V workspace that contains App2. Deploy the workspace to the client computers of  the 10 users.
    • C、On an RD Session Host server in the branch office, install and publish App2 by using RemoteApp. deploy the RemoteApp program as an MSI file.
    • D、On an RD Virtualization Host server in the branch office,create 10 Windows 7 VMs that contain App2. configure the new VMs as personal virtual desktops.

    正确答案:D

  • 第4题:

    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

  • 第5题:

    You deploy applications by using the Microsoft Application Virtualization (App-V) Full Infrastructure Model You need to recommend a solution to manage the App-V Desktop Client settings. What should you include in the recommendation?()

    • A、The App-V System Deployment SuperFlow
    • B、the App-V Dynamic Suite Composition Tool
    • C、the App-V Sequencer
    • D、the App-V Client ADM Template

    正确答案:D

  • 第6题:

    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

  • 第7题:

    单选题
    You have an Exchange Server 2010 organization.You install a new Client Access server in the organization.You need to verify whether users can access the new Client Access server by using Outlook Web App. What should you do?()
    A

    From the Exchange Best Practices Analyzer, run a baseline scan.

    B

    From the Exchange Management Shell, run the Test-OwaConnectivity cmdlet.

    C

    From the Exchange Management Console (EMC), examine the properties of the default Outlook Web App mailbox policy.

    D

    From the Internet Information Services (IIS) Manager, view the session state settings for the Outlook Web Access virtual directory.


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

  • 第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


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

  • 第9题:

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

  • 第10题:

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

  • 第11题:

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

  • 第12题:

    单选题
    Your company has an Active Directory Domain Services (AD DS) domain. You have a main office and a branch office that are connected by a slow WAN link. All servers are located in the main office. You virtualize an application by using Microsoft Application Virtualization (App-V) 4.5. The available bandwidth is not sufficient for branch office users to run the virtualized application. You need to ensure that branch office users can run the virtualized application by using the Microsoft Application Virtualization Desktop Client. What should you do?()
    A

    On each App-V server in the main office, upgrade the App-V desktop clients to 4.6.

    B

    On each client computer in the branch office, upgrade the App-V desktop clients to 4.6.

    C

    On each client computer in the branch office, install the application by using Windows Installer (.msi) files created by the App-V Sequencer.

    D

    In the Microsoft System Center Application Virtualization Management Server, configure an Application Virtualization file server for the main office.


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

  • 第13题:

    Your company has 1,000 client computers that run Windows XP Professional x64.   You are planning to deploy Windows 7 Enterprise x64. The company uses an application that is incompatible with Windows 7 Enterprise x64.   You have the following requirements:   Provide all users with access to the application.   Deploy and manage the application by using a centralized solution.  You need to design a solution that meets the requirements.   What should you do?()

    • A、 Install the application on all client computers by using Group Policy,and then use the Compatibility tab.
    • B、 Install the Microsoft Enterprise Desktop Virtualization(MED-V) v2 package on each client computer.
    • C、 Install the Microsoft Application Virtualization(App-V) client on each client computer,and stream the application byusing App-V.
    • D、 Install the Microsoft Application Virtualization(App-V) client on each client computer,and run the application in offline mode.

    正确答案:B

  • 第14题:

    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

  • 第15题:

    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

  • 第16题:

    You are planning to upgrade the operating systems of the client computers in the financedepartment.   You need to recommend a solution for App1 that meets the company’s technical requirements. What should you include in the recommendation?()

    • A、Microsoft Application Virtualization (App-V)
    • B、RemoteApp and Desktop Connection
    • C、RD Gateway
    • D、Windows XP Mode

    正确答案:D

  • 第17题:

    Client computers on your network run either Windows Vista or Windows 7.  You plan to use Microsoft Application Virtualization (App-V) 4.5 with SP1 as an application virtualization platform. You need to virtualize applications by using mount point installations (MNT).  What should you do?()

    • A、Configure the App-V Sequencer to have two partitions
    • B、Configure the App-V Sequencer on a Windows 7 client computer
    • C、Configure virtualized applications to check for updates during installation
    • D、On the reference computer, install all software that typically runs on client computers

    正确答案:A

  • 第18题:

    单选题
    You deploy applications by using the Microsoft Application Virtualization (App-V) Full Infrastructure Model You need to recommend a solution to manage the App-V Desktop Client settings. What should you include in the recommendation?()
    A

    The App-V System Deployment SuperFlow

    B

    the App-V Dynamic Suite Composition Tool

    C

    the App-V Sequencer

    D

    the App-V Client ADM Template


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

  • 第19题:

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

  • 第20题:

    单选题
    You are planning to upgrade the client computers of the users in the sales department to Windows 7. You need to recommend an upgrade solution to ensure that the client computers can run App2. What should you include in the recommendation?()
    A

    Internet Explorer Administration Kit (IEAK)

    B

    Microsoft Application Compatibility Toolkit (ACT)

    C

    Microsoft Application Virtualization (App-V)

    D

    Microsoft Enterprise Desktop Virtualization (MED-V)


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

  • 第21题:

    单选题
    Your company has an Active Directory Domain Services (AD DS) domain. You have a main office and a branch office that are connected by a slow WAN link. All servers are located in the main office. You virtualize an application by using Microsoft Application Virtualization (App - V) 4.5. The available bandwidth is not sufficient for branch office users to run the virtualized application. You need to ensure that branch office users can run the virtualized application by using the Microsoft Application Virtualization Desktop Client. What should you do?()
    A

    On each App - V server in the main office, upgrade the App - V desktop clients to 4.6.

    B

    On each client computer in the branch office, upgrade the App - V desktop clients to 4.6.

    C

    On each client computer in the branch office, install the application by using Windows Installer (.msi) files created by the App - V Sequencer.

    D

    In the Micr osoft System Center Application Virtualization Management Server, configure an Application Virtualization file server for the main office.


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

  • 第22题:

    单选题
    Your company has 1,000 client computers that run Windows XP Professional x64.   You are planning to deploy Windows 7 Enterprise x64. The company uses an application that is incompatible with Windows 7 Enterprise x64.   You have the following requirements:   Provide all users with access to the application.   Deploy and manage the application by using a centralized solution.  You need to design a solution that meets the requirements.   What should you do?()
    A

     Install the application on all client computers by using Group Policy,and then use the Compatibility tab.

    B

     Install the Microsoft Enterprise Desktop Virtualization(MED-V) v2 package on each client computer.

    C

     Install the Microsoft Application Virtualization(App-V) client on each client computer,and stream the application byusing App-V.

    D

     Install the Microsoft Application Virtualization(App-V) client on each client computer,and run the application in offline mode.


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

  • 第23题:

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

  • 第24题:

    单选题
    Client computers on your network run either Windows Vista or Windows 7. You plan to use Microsoft Application Virtualization (App-V) 4.5 with SP1 as an application virtualization platform. You need to virtualize applications by using mount point installations (MNT).   What should you do?()
    A

    Configure the App-V Sequencer to have two partitions

    B

    Configure the App-V Sequencer on a Windows 7 client computer

    C

    Configure virtualized applications to check for updates during installation. A Composite Solution With Just One Click - Certification Guaranteed 86 Microsoft 70-693 Exam

    D

    On the reference computer, install all software that typically runs on client computers


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