-> Send to a friend

LyricWiki:SOAP/Ruby

From LyricWiki

Jump to: navigation, search

Ruby SOAP

Example code:

require 'soap/wsdlDriver' 
driver = SOAP::WSDLDriverFactory.new("http://lyricwiki.org/server.php?wsdl").create_rpc_driver 
lyrics = driver.getSong(artist,song).lyrics

Issues

  • Incorrect conversions
    • The ruby SOAP implementation does strange things to characters outside of ASCII. Currently the SOAP service returns lyrics encoded in ISO-8859-1 (Latin1). The lyrics are correctly encoded in Latin1, however ruby tries to do an encoding assuming a different encoding and therefore messes up the character encoding.
  • Non-latin characters
    • Characters that are not defined in ISO-8859-1 (Latin1) are returned from the server as question marks (?).
    • Artist names that use characters not in Latin1 are not retrieved at all.
Personal tools
LyricWiki Challenge
LyricWiki Challenge + Facebook App
Try the LyricWiki Challenge
Facebook App!
Friend spotlight (info)
Indiana Jones Wiki

why the ad?