Answers to Self-Review Exercises
32.1 a) False. Only methods declared with the
@WebMethodannotation can be invoked by a web service’s clients. b) False. The proxy class is created by NetBeans when you add a web service client to the application. c) True. d) False. In the JAX-WS framework, the client must indicate whether it wants to allow the web service to maintain session information. First, you must cast the proxy object to interface typeBindingProvider, then use theBindingProvider’sgetRequestContextmethod to obtain theRequestContextobject. Finally, you must use theRequestContext’sputmethod to set the propertyBindingProvider.SESSION_MAINTAIN_PROPERTYtotrue. e) True. f) True. g) True. h) False. A SOAP web service implicitly returns ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access