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)- A15% (5)
- B6% (2)
- C73% (24)
- D3% (1)
- E3% (1)
Community Discussion
No community discussion yet for this question.