Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

28. Web Services in JavaĀ >Ā Answers to Self-Review Exercises

Answers to Self-Review Exercises

28.1

a. False. Only methods declared with the @WebMethod annotation 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 type BindingProvider, then use the BindingProvider’s getRequestContext method to obtain the RequestContext object. Finally, you must use the RequestContext’s put method to set the property BindingProvider.SESSION_MAINTAIN_PROPERTY to true.

e. True.

f. True.

g. True.

h. False. A SOAP web service implicitly returns data in XML format.


Ā Ā 

You are currently reading a PREVIEW of this book.

Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā 

Get instant access to over
$1 million worth of books and videos.

Ā Ā 

Start a Free Trial


Ā Ā