单选题A developer used wsimport to generate the skeleton code for a Web service implementation. What is the purpose of the generated ObjectFactory class?()A The ObjectFactory class is the generated Service Endpoint Interface classB The ObjectFactory class is the generated service provider class that is used by the JAX-WS client.C The ObjectFactory class takes the targetNamespace value and creates the directory structure.D The ObjectFactory class allows you to programatically construct new instances of the Java representation for XML content.

单选题
A developer used wsimport to generate the skeleton code for a Web service implementation. What is the purpose of the generated ObjectFactory class?()
A

 The ObjectFactory class is the generated Service Endpoint Interface class

B

 The ObjectFactory class is the generated service provider class that is used by the JAX-WS client.

C

 The ObjectFactory class takes the targetNamespace value and creates the directory structure.

D

 The ObjectFactory class allows you to programatically construct new instances of the Java representation for XML content.


参考解析

解析: 暂无解析

相关考题:

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 to replace an existing ASMX Web service.The WCF service contains the following code segment. (Line numbers are included for reference only.)01 [ServiceContract()]0203 public interface IEmployeeService04 {05 [OperationContract()]06 EmployeeInfo GetEmployeeInfo(int employeeID);0708 }0910 public class EmployeeService : IEmployeeService11 {1213 public EmployeeInfo GetEmployeeInfo(int employeeID)14 {15 ...16 }17 }181920 public class EmployeeInfo21 {22 ...23 public int EmployeeID { get; set; }24 public string FirstName { get; set; }25 public string LastName { get; set; }2627 }The existing Web service returns the EmployeelD as an attribute of the Employeelnfo element in the response XML.You need to ensure that applications can consume the service without code changes in the client.What should you do?()

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.

End-to-end QoS is maintained in the Cisco WLAN deployment model by utilizing what parameter in lieu of 802.1p?()A、 IP precedenceB、 type of service (ToS)C、 class of service (CoS)D、 differentiated services code point (DSCP)

You create a service application that monitors free space on a hard disk drive.  You must ensure that the service application runs in the background and monitors the free space every minute. What should you do?()A、Add code to the default constructor of the Service class to monitor the free space on the hard disk drive.B、Add code to the OnStart method of the Service class to monitor the free space on the hard disk drive.C、Add an instance of the System.Windows.Forms.Timer class to the Service class and configure it to fire every minute.D、Add an instance of the System.Timers.Timer class to the Service class and configure it to fire every minute.E、Add code to the OnStart method of the Service class to start the timer.F、Add code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive.G、Add code to the Tick event handler of the timer to monitor the free space on the hard disk drive.

You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application that monitors and controls the activities of a Windows service.You need to use the appropriate class to meet Certkiller .com’s requirements. What should you do?()A、 Use the ServiceBase class.B、 Use the ServiceInstaller class.C、 Use the ServiceManager class.D、 Use the ServiceController class.

What is the purpose of classification, rewrites, and queuing in Juniper routers?()A、to provide policy based routingB、to provide class of service capabilitiesC、to provide firewall filtering capabilitiesD、to provide unified threat managment

What is the default Quality of Service traffic class used by the ERX Edge Router?()A、bronze forwardingB、assured forwardingC、expedited forwardingD、best effort forwarding

A developer used wsimport to generate the skeleton code for a Web service implementation. What is the purpose of the generated ObjectFactory class?() A、 The ObjectFactory class is the generated Service Endpoint Interface classB、 The ObjectFactory class is the generated service provider class that is used by the JAX-WS client.C、 The ObjectFactory class takes the targetNamespace value and creates the directory structure.D、 The ObjectFactory class allows you to programatically construct new instances of the Java representation for XML content.

You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.The ServiceHost instance is created in the Form Constructor.You need to ensure that the service is not blocked while the UI thread is busy. What should you do?()A、Decorate the service implementation class with the following line of code [ServiceBehavior(UseSyncronizationContext = false)]B、Decorate the service implementation class with the following line of code [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]C、Call the Invoke method of the form and supply a delegate.D、Call the BeginInvoke method of the form and supply a delegate.

You work as an application developer at Certkiller .com. Certkiller .com has instructed you to create a class named MetricFormula. This class will be used to compare MetricUnit and EnglishUnit objects.The MetricFormula is currently defined as follows (Line numbers are used for reference purposes only): 1. public class MetricFormula2. { 3. 4. } You need to ensure that the MetricFormula class can be used to compare the required objects. What should you do? ()A、 Add the following code on line 1: : IComparable {B、 Add the following code on line 1: : IComparer {C、 Add the following code on line 3: public int Compare (object x, object y) {// implementation code }D、 Add the following code on line 3: public int CompareTo (object obj) {// implementation code }

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、 IDictionaryB、 IComparableC、 IComparerD、 IEqualityComparer

You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.[ServiceContract( )]public interface IPaymentService{ [OperationContract( )] void RecordPayments(Person person);}public class Person{ ... }public class Employee : Person{ ... }public class Customer : Person{ ... }You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object. What should you do?()A、Add the following KnownType attribute to the Employee class and to the Customer class. [KnownType(GetType(Person))]B、Implement the IExtensibleDataObject interface in the Person class.C、Implement the IExtension(ofType(T)) interface in the Person class.D、Add the following KnownType attributes to the Person class. [KnownType(GetType(Employee))] [KnownType(GetType(Customer))]

You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a .NET Framework 2.0 Windows Service application and are busy writing the following installation code for the Windows service: Public Class TestServiceInstaller Implemets Installer 'Additional code to go here End Class You are required to install the Windows service and write the values associated with the service in the Windows Registry. What should you do?()A、The Assembly Registration Tool (Regasm.exe) should be used.B、The Global Assembly Cache Tool (Gacutil.exe) should be used.C、The .NET Services Installation Tool (Regsvcs.exe) should be used.D、The Installer Tool (InstallUtil.exe) should be used.

You need to modify a client application that consumes a Windows Communication Foundation (WCF) service. The service metadata is no longer available. You need to modify the previously generated proxy to include asynchronous calls to the service. What should you do? ()A、Update the service reference with the Generate asynchronous operations option.B、Create a partial class for the previously generated proxy and include the new asynchronous methods.C、Create a class with the same name as the previously generated proxy and add the new asynchronous methods. Add the new class to a namespace that is different from the original proxy.D、Create a class with the same name as the previously generated proxy and add the new asynchronous methods as partial methods. Add the new class to a namespace that is different from the original proxy.

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.ListB、In the context menu for the service reference in the ASP.NET project, select the Update Service Reference commaC、Change the service interface and implementation to return a ListD、Edit the address property of the endpoint element in the web.config file to use the new service address

单选题You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a .NET Framework 2.0 Windows Service application and are busy writing the following installation code for the Windows service: Public Class TestServiceInstaller Implemets Installer 'Additional code to go here End Class You are required to install the Windows service and write the values associated with the service in the Windows Registry. What should you do?()AThe Assembly Registration Tool (Regasm.exe) should be used.BThe Global Assembly Cache Tool (Gacutil.exe) should be used.CThe .NET Services Installation Tool (Regsvcs.exe) should be used.DThe Installer Tool (InstallUtil.exe) should be used.

单选题You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application that monitors and controls the activities of a Windows service.You need to use the appropriate class to meet Certkiller .com’s requirements. What should you do?()A Use the ServiceBase class.B Use the ServiceInstaller class.C Use the ServiceManager class.D Use the ServiceController class.

单选题You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a Windows Service application which contains three different Windows services. You are required to only set one Windows service to start automatically when the system is restarted. What should you do?()AUse the ServiceController class.BUse the ServiceBase class.CUse the ServiceProcessInstaller class.DUse the ServiceInstaller class.

单选题What is the default Quality of Service traffic class used by the ERX Edge Router?()Abronze forwardingBassured forwardingCexpedited forwardingDbest effort forwarding

单选题You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.The ServiceHost instance is created in the Form Constructor.You need to ensure that the service is not blocked while the UI thread is busy. What should you do?()ADecorate the service implementation class with the following line of code [ServiceBehavior(UseSyncronizationContext = false)]BDecorate the service implementation class with the following line of code [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]CCall the Invoke method of the form and supply a delegate.DCall the BeginInvoke method of the form and supply a delegate.

单选题You are developing a Windows Communication Foundation (WCF) service that contains the following service contract.[ServiceContract( )]public interface IPaymentService{ [OperationContract( )] void RecordPayments(Person person);}public class Person{ ... }public class Employee : Person{ ... }public class Customer : Person{ ... }You need to ensure that RecordPayments can correctly deserialize into an Employee or a Customer object. What should you do?()AAdd the following KnownType attribute to the Employee class and to the Customer class. [KnownType(GetType(Person))]BImplement the IExtensibleDataObject interface in the Person class.CImplement the IExtension(ofType(T)) interface in the Person class.DAdd the following KnownType attributes to the Person class. [KnownType(GetType(Employee))] [KnownType(GetType(Customer))]

单选题What is the purpose of classification, rewrites, and queuing in Juniper routers?()Ato provide policy based routingBto provide class of service capabilitiesCto provide firewall filtering capabilitiesDto provide unified threat managment

单选题A developer used wsimport to generate the skeleton code for a Web service implementation. What is the purpose of the generated ObjectFactory class?()A The ObjectFactory class is the generated Service Endpoint Interface classB The ObjectFactory class is the generated service provider class that is used by the JAX-WS client.C The ObjectFactory class takes the targetNamespace value and creates the directory structure.D The ObjectFactory class allows you to programatically construct new instances of the Java representation for XML content.

单选题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 IDictionaryB IComparableC IComparerD IEqualityComparer

单选题End-to-end QoS is maintained in the Cisco WLAN deployment model by utilizing what parameter in lieu of 802.1p?()A IP precedenceB type of service (ToS)C class of service (CoS)D differentiated services code point (DSCP)

单选题You need to modify a client application that consumes a Windows Communication Foundation (WCF) service. The service metadata is no longer available. You need to modify the previously generated proxy to include asynchronous calls to the service. What should you do? ()AUpdate the service reference with the Generate asynchronous operations option.BCreate a partial class for the previously generated proxy and include the new asynchronous methods.CCreate a class with the same name as the previously generated proxy and add the new asynchronous methods. Add the new class to a namespace that is different from the original proxy.DCreate a class with the same name as the previously generated proxy and add the new asynchronous methods as partial methods. Add the new class to a namespace that is different from the original proxy.

多选题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?()AIn the context menu for the service reference in the ASP.NET project, select the Configure Service Reference commSystem.Collections.Generic.ListBIn the context menu for the service reference in the ASP.NET project, select the Update Service Reference commaCChange the service interface and implementation to return a ListDEdit the address property of the endpoint element in the web.config file to use the new service address