Java Reference
In-Depth Information
Listing 8.6. BidServiceRS RESTful interface
Two of the methods in this listing either consumed or produced an XML representing a
Bid . The Bid instance is actually a DTO—you don't want the Item and Bidder refer-
ences accidently serialized. JAXB is responsible for the marshaling. Because the class is
a fairly simple DTO, JAXB annotations are coded manually—the object wasn't generated
from XML schema as is typically done. The code for this DTO is shown in the following
listing.
 
Search WWH ::




Custom Search