Presentation is loading. Please wait.

Presentation is loading. Please wait.

Music Browser. Web Services  SOAP and WSDL  Simple Object Access Protocol  Web Services Description Language  To use SOAP  Generate stub classes.

Similar presentations


Presentation on theme: "Music Browser. Web Services  SOAP and WSDL  Simple Object Access Protocol  Web Services Description Language  To use SOAP  Generate stub classes."— 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 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


Download ppt "Music Browser. Web Services  SOAP and WSDL  Simple Object Access Protocol  Web Services Description Language  To use SOAP  Generate stub classes."

Similar presentations


Ads by Google