nerdexam
IBM

C2180-371 · Question #32

A developer has an @WebServiceRef annotation defined in a web service client. @WebServiceRef(name="java:comp/env/service/AddressBookService", AddressBookService.class)AddressBookPort port…

The correct answer is C. <service-ref-name>. See the full explanation below for the reasoning.

Question

A developer has an @WebServiceRef annotation defined in a web service client. @WebServiceRef(name="java:comp/env/service/AddressBookService", AddressBookService.class)AddressBookPort port; ... Address address = port.getAddress (John Doe); What element in the deployment descriptor defines the value of "name"?

Options

  • A<service-ref>
  • B<service-name>
  • C<service-ref-name>
  • D<service-interface>
  • E<service-interface-name>

How the community answered

(54 responses)
  • A
    2% (1)
  • B
    7% (4)
  • C
    78% (42)
  • D
    11% (6)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full C2180-371 Practice