Liquid XML Data Binder (C++, Java, VB6) / Examples / Music Store / Example Usage / Request / Java Sample : Music Store
In This Topic
    Java Sample : Music Store
    In This Topic
    Schema Summary
    This sample shows how a to use the generated code to implement a simple request response (client/server) application.

    Schema Details
    The Request represents a search request for an album (like the interfaces exposed by Amazon or Play).
    The response represents the result of the search, in this case either a set of results or an error. If results are returned then this may contain 0-n products (a product being an album), each album has one or more tracks, and a track has a title and length.


    Sample Description
    The sample demonstrates how to Create a request document, get the underlying XML. Decode the request, and build a response. Then decode and display the response. In short both side of a very simple client server application.

    Sample XML File

     MusicStore_Sample_Response.xml

    Sample Code
     Read Sample

    XSD Source Files
     MusicStore.xsd
     Schema Diagrams

    Generated Files
     AlbumType.java
     ClassFactory.java
     Error.java
     PriceFilter.java
     Result.java
     SearchRequest.java
     SearchResponse.java
     TrackType.java

    Main Menu Samples List