Java Reference
In-Depth Information
where GET http://tutortutor.ca/library mightreturnalistofidentifiers
for all books in a library resource, GET http://tutortutor.ca/lib-
rary?isbn=9781430234135 would probably return a representation of the topic
resource whose query string identifies International Standard Book Number (ISBN)
9781430234135 .
Note For a complete description of the mappings between HTTP verbs and their
CRUD counterparts, check out the “RESTful Web Service HTTP methods” table
in Wikipedia's “Representational State Transfer” entry ( ht-
tp://en.wikipedia.org/wiki/Representation-
al_State_Transfer ).
AswellasrelyingonHTTPverbsandMIMEtypeswhenmakingrequests,RESTre-
liesonHTTP'sstandardresponsecodes,suchas404(requestedresourcenotfound)and
200(resourceoperationsuccessful),alongwithMIMEtypes(whenresourcerepresent-
ations are being retrieved) for obtaining responses.
Tip If you are wondering about whether to develop a web service using SOAP
or REST, check out “RESTful Web Services vs. “Big” Web Services: Making the
Right Architectural Decision” ( http://www.jopera.org/files/
www2008-restws-pautasso-zimmermann-leymann.pdf ).
Java and Web Services
PriortoJava6,Java-basedwebservicesweredevelopedexclusivelywiththeJavaEE
SDK.AlthoughJavaEEisthepreferred approach fordeveloping webservices froma
production perspective, because Java EE-based servers provide a very high degree of
scalability, a security infrastructure, monitoring facilities, and so on, the repeated de-
ployment of a web service to a Java EE container is time consuming and slows down
development.
Java 6 simplified and accelerated web services development by incorporating APIs,
annotations,tools,andalightweightHTTPserver(fordeployingyourwebservicestoa
simplewebserverandtestingtheminthisenvironment)intoitscore.Java7alsosup-
ports these components.
ADDING WEB SERVICES SUPPORT TO CORE JAVA CONTROVERSY
Search WWH ::




Custom Search