nerdexam
IBM

C2180-371 · Question #108

A developer is writing a Web service operation namedgetQuote?Select the proper code to obtain the HTTP Query String used in the request:

The correct answer is C. @Resource private WebServiceContext context; Public String get Quote (String input String). See the full explanation below for the reasoning.

Question

A developer is writing a Web service operation namedgetQuote?Select the proper code to obtain the HTTP Query String used in the request:

Options

  • Apublic String get Quote (String input String, Message Context mc)
  • Bpublic String get Quote (String input String, WebServiceContext wc)
  • C@Resource private WebServiceContext context; Public String get Quote (String input String)
  • D@WebServiceContext private WebServiceContext context; Public String get Quote (String
  • E@Resource private Resource context; Public String get Quote (String input String)

How the community answered

(33 responses)
  • A
    15% (5)
  • B
    6% (2)
  • C
    73% (24)
  • D
    3% (1)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full C2180-371 Practice