Download presentation
Presentation is loading. Please wait.
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 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://www.last.fm/api http://webservices.rhapsody.com/rwssdk/rwssdk_v1_0.pdf http://webservices.rhapsody.com/rwssdk/rwssdk_v1_0.pdf
4
Main Application (MIDlet) AlbumTrackArtist FetchXMLFetchImage DefaultHandler ArtistHandler AlbumHandler TrackHandler Thread LoadArtistsLoadAlbum Thread LoadTracks
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) AlbumTrackArtist FetchXMLFetchImage DefaultHandler ArtistHandler AlbumHandler TrackHandler Thread LoadArtistsLoadAlbum Thread LoadTracks
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.