1 / 6

Music Browser

Use SOAP and WSDL to access and invoke methods of web services. Construct special URLs for REST requests, receive information in XML format, and parse XML. API integration with Last.fm and Rhapsody.

Download Presentation

Music Browser

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Music Browser

  2. Web Services SOAP and WSDL Simple Object Access Protocol Web Services Description Language To use SOAP Generate stub classes from the WSDL document Call methods from the stubs to invoke methods of web service (Remote Procedure Invocation) http://www.xmlme.com/WSShakespeare.asmx

  3. Web Services REST (Representation State Transfer) Request information by constructing special URLs Receive information in XML format Parse XML http://www.last.fm/api http://webservices.rhapsody.com/rwssdk/rwssdk_v1_0.pdf

  4. Main Application (MIDlet) Thread LoadArtists LoadAlbum LoadTracks Artist Album Track Thread DefaultHandler FetchXML FetchImage ArtistHandler TrackHandler AlbumHandler

  5. Main Points Keep in mind the user and user interface Check the response codes after making a connection Reconnect on failure Follow redirect URL hc.getResponseCode() == HttpConnection.HTTP_MOVED_PERM hc.getHeaderField("Location“)

  6. Main Application (MIDlet) Thread LoadArtists LoadAlbum LoadTracks Artist Album Track Thread DefaultHandler FetchXML FetchImage ArtistHandler TrackHandler AlbumHandler

More Related