Java Reference
In-Depth Information
Javasimplifiesandaccelerates webservicesdevelopmentbyincorporatingAPIs,
annotations,tools,andalightweightHTTPserver(fordeployingyourwebservices
toasimplewebserverandtestingtheminthisenvironment)intoitscore.KeyAPIs
areJAX-WS,JAXB,andSAAJ.Importantannotationsinclude
WebService
,
We-
bMethod
,
WebServiceProvider
,
Binding
, and
ServiceMode
. Four tools
arealsoprovidedtosimplifydevelopment:
schemagen
,
wsgen
,
wsimport
,and
xjc
. The lightweight HTTP server is based on a package of types located in the
com.sun.net.httpserver
packageofOracle'sJavareferenceimplementation.
WebservicespublishedviaJAX-WS's
Endpoint.publish()
methodcalltypic-
allycausethedefaultlightweightHTTPservertobestarted,althoughyoucancreate
yourownHTTPserver,makeitscontextavailableto
Endpoint.publish()
,and
start this server.
AfterlearninghowtocreateandaccessyourownSOAP-basedandRESTfulweb
services, and access the SOAP-based and RESTful web services created by others,
you'll probably want to learn about advanced web service topics.
Chapter 11
partly
satisfiesthisdesirebyshowingyouhowtoaccessSOAP-basedwebservicesviathe
SAAJ API, install a JAX-WS handler to log the flow of SOAP messages, install a
customizedlightweightHTTPservertoperformauthentication,sendattachmentsto
clients from a RESTful web service, and use dispatch clients with providers.
And now for something different!
Chapter 12
closes the nonappendix portion of
thisbookbyintroducingyoutoAndroidandshowingyouhowtocreateanAndroid
app.