IBM(000-371)

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

参考答案和解析
正确答案: C
解析: 暂无解析
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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.


参考答案:D

第2题:

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

第3题:

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.


参考答案:B

第4题:

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

第5题:

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

第6题:

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)

正确答案:D

第7题:

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

第8题:

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

02

03 public interface IEmployeeService

04 {

05 [OperationContract()]

06 EmployeeInfo GetEmployeeInfo(int employeeID);

07

08 }

09

10 public class EmployeeService : IEmployeeService

11 {

12

13 public EmployeeInfo GetEmployeeInfo(int employeeID)

14 {

15 ...

16 }

17 }

18

19

20 public class EmployeeInfo

21 {

22 ...

23 public int EmployeeID { get; set; }

24 public string FirstName { get; set; }

25 public string LastName { get; set; }

26

27 }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?()


参考答案:B

第9题:

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

第10题:

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

更多相关问题