itgle.com

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

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


相似考题
更多“单选题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 ”相关问题
  • 第1题:

    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.

    正确答案:D,E,F

  • 第2题:

    What is the purpose of classification, rewrites, and queuing in Juniper routers?()

    • A、to provide policy based routing
    • B、to provide class of service capabilities
    • C、to provide firewall filtering capabilities
    • D、to provide unified threat managment

    正确答案:B

  • 第3题:

    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.

    正确答案:D

  • 第4题:

    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 }

    正确答案:B,C

  • 第5题:

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

    正确答案:D

  • 第6题:

    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.

    正确答案:B

  • 第7题:

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


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

  • 第8题:

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

    Use the ServiceController class.

    B

    Use the ServiceBase class.

    C

    Use the ServiceProcessInstaller class.

    D

    Use the ServiceInstaller class.


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

  • 第9题:

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


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

  • 第10题:

    单选题
    What is the purpose of classification, rewrites, and queuing in Juniper routers?()
    A

    to provide policy based routing

    B

    to provide class of service capabilities

    C

    to provide firewall filtering capabilities

    D

    to provide unified threat managment


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

  • 第11题:

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


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

  • 第12题:

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


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

  • 第13题:

    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.

    正确答案:D

  • 第14题:

    What is the default Quality of Service traffic class used by the ERX Edge Router?()

    • A、bronze forwarding
    • B、assured forwarding
    • C、expedited forwarding
    • D、best effort forwarding

    正确答案:D

  • 第15题:

    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.

    正确答案:A

  • 第16题:

    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

  • 第17题:

    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.

    正确答案:D

  • 第18题:

    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

    正确答案:A,D

  • 第19题:

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


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

  • 第20题:

    单选题
    What is the default Quality of Service traffic class used by the ERX Edge Router?()
    A

    bronze forwarding

    B

    assured forwarding

    C

    expedited forwarding

    D

    best effort forwarding


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

  • 第21题:

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


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

  • 第22题:

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


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

  • 第23题:

    单选题
    End-to-end QoS is maintained in the Cisco WLAN deployment model by utilizing what parameter in lieu of 802.1p?()
    A

     IP precedence

    B

     type of service (ToS)

    C

     class of service (CoS)

    D

     differentiated services code point (DSCP)


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

  • 第24题:

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


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