You create a Visual Studio 2010 solution that includes a WCF

题目
多选题
You create a Visual Studio 2010 solution that includes a WCF service project and an ASP.NET project. The service includes a method named GetPeople that takes no arguments and returns an array of Person objects. The ASP.NET application uses a proxy class to access the service. You use the Add Service Reference wizard to generate the class. After you create the proxy, you move the service endpoint to a different port. You need to configure the client to use the new service address. In addition, you must change the implementation so that calls to the client proxy will return a List instead of an array. Which two actions should you perform?()
A

In the context menu for the service reference in the ASP.NET project, select the Configure Service Reference commSystem.Collections.Generic.List

B

In the context menu for the service reference in the ASP.NET project, select the Update Service Reference comma

C

Change the service interface and implementation to return a List

D

Edit the address property of the endpoint element in the web.config file to use the new service address

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

第1题:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You plan to implement a test strategy for the application. You need to ensure that the test strategy meets the following requirements: Test data can be added to the test project without recompiling. Multiple variations of a test can be executed at run time. What should you do? ()

  • A、 Use IntelliTrace.
  • B、 Use data-driven tests.
  • C、 Create a single test class.
  • D、 Create a test method for each data variation.

正确答案:B

第2题:

You create a control named ContosoUI for a Web application. You need to add the control to the toolbox of Microsoft Visual Studio .NET. Which two actions should you perform?()

  • A、Create the ContosoUI control as a Web Control Library.
  • B、Create the ContosoUI control as a Web user control.
  • C、Within the Visual Studio .NET toolbox, browse to and select ContosoUI.ascx.
  • D、Within the Visual Studio .NET toolbox, browse to and select ContosoUI.dll.

正确答案:A,D

第3题:

You are designing an organizational unit (OU) structure to manage the New App servers.  What should you do? ()

  • A、 Create one OU that includes both the web servers and the database servers.
  • B、 Create one OU that includes the web servers and one OU that includes the database servers.
  • C、 Create one OU that includes the web servers. Then Place the database servers in the Computer Containers.
  • D、 Place the web server and the database servers in the Domain Controller OU.

正确答案:B

第4题:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually. You need to create an automated and iterative process to test the application. What should you do?()

  • A、 Use IntelliTrace.
  • B、 Use UISpy.exe to extract the user interface (UI) information. Then, use MSTest.exe.
  • C、 Use classes in the System.Windows.Automation and System.Windows.Automation.Text namespaces.
  • D、 Use the Action Recording methodology to record the user interface (UI) actions. Then, use MSTest.exe.

正确答案:C

第5题:

You design a SQL Server 2008 Reporting Services (SSRS) solution. You create a report by using Microsoft Visual Studio .NET 2008. The report contains the following components: A dataset named Customer that lists all active customers and their details. The dataset accepts no parameters. A dataset named SalesHistory that lists all sales transactions for a specified time period and accepts year and month as parameters. You need to ensure that a summary of sales transactions is displayed for each customer after the customer details. Which component should you add to the report? ()

  • A、 List
  • B、 Table
  • C、 Matrix
  • D、 Subreport

正确答案:D

第6题:

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. The Web application connects to a SQL Server database. You use the ADO.NET Entity Framework to handle persistence-ignorant entities. You create an ObjectContext object named ObjContext. Subsequently, you change properties on numerous entities. You are required to save the changed entity values in the SQL Server database. Which of the following code segments will you use?()

  • A、ObjContext.SaveChanges(SaveOptions.DetectChangesBeforeSave);
  • B、ObjContext.SaveChanges(SaveOptions.AcceptAllChangesAfterSave);
  • C、ObjContext.SaveChanges(SaveOptions.All);
  • D、ObjContext.SaveChanges(SaveOptions.None);

正确答案:A

第7题:

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

第8题:

You design a Business Intelligence (BI) solution by using SQL Server 2008. You create a SQL Server 2008 Reporting Services (SSRS) solution. You create reports by using Microsoft Visual Studio .NET 2008. The development team of your company must create 50 SSRS reports. You need to ensure that the company logo and the company name are included in the page header of all the reports. What should you do?()

  • A、 Create an SSRS report and include the required page header in the report. Use the report as a template for all the reports.
  • B、 Create an SSRS report and include the required page header in the report. Create a subreport that refers to the report. Include the subreport to all the reports.
  • C、 Create a SSRS report and include the required page header in the report. Copy the report definition to an XML file.Add the XML file as a data source for all the reports.
  • D、 Create a SSRS report and include the required page header in the report. Create a class library that includes the report.Add the class library as an assembly reference for all the reports.

正确答案:A

第9题:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application. You have a company logo that must appear on multiple forms in the application. The logo design changes frequently. You need to ensure that when the logo image is changed, you only need to update a single location. What should you do?()

  • A、 Define the image as a page resource. 
  • B、 Define the image as an application resource.
  • C、 Save the image on a network drive. 
  • D、 Include the image as an embedded resource.

正确答案:B

第10题:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You discover that when the application runs, a user control is not rendered correctly. You need to find out the user interface (UI) element of the window that is causing the rendering problem. What should you do?()

  • A、 Use the Local Window.
  • B、 Use the WPF Visualizer.
  • C、 Generate a trace log by using IntelliTrace.
  • D、 Set a breakpoint at the control. Run the application.

正确答案:B

更多相关问题