The site is undergoing an upgrade... please be patient while we fix things as fast as we can. We're keeping a running list of known issues with the current version.
-> Send to a friend

LyricWiki:Java & Axis

From LyricWiki

Jump to: navigation, search

Here's a quick how-to I put together to help those who want to access this beautiful work at lyricwiki.org via Java & Axis.

[edit] Using Axis to build the stubs

  1. Download WSDL from here. For the purpose of this document I named this file lyricwiki.wsdl.
  2. Edit lyricwiki.wsdl according to JAVA && AXIS on this page.
  3. Download Axis from here (to write this document I downloaded axis-bin-1_4.tar.gz).
  4. Uncompress axis-bin_4.tar.gz (tar -zxvf axis-bin-1_4.tar.gz). This creates a directory named axis-1_4.
  5. Copy lyricwiki.wsdl to axis-1_4 directory and cd to that directory.
  6. You may now use a command like the following (all in one line) to build the stubs, skeletons, and data types from lyricwiki.wsdl.
java -cp lib:lib/axis-ant.jar:lib/axis.jar:lib/commons-discovery-0.2.jar:lib/commons-logging-1.0.4.jar:
         lib/log4j.properties:lib/saaj.jar:lib/wsdl4j-1.5.1.jar:lib/jaxrpc.jar org.apache.axis.wsdl.WSDL2Java lyricwiki.wsdl


  • There should now be a directory named LyricWiki_pkg where the stubs are generated.

[edit] Example Code

  • You may now use the generated code with the following code snippet to pull in song lyrics.
LyricWikiLocator service = new LyricWikiLocator();
LyricWikiPortType port = service.getLyricWikiPort();
LyricsResult lyrics = port.getSong("artist", "song title");

System.out.println("Lyrics:\n\n"+lyrics.getLyrics());


I hope you find the above instructions helpful.


Kjavaher 03:56, 10 January 2008 (EST) - Kamran Javaheri

Personal tools
LyricWiki Challenge
LyricWiki Challenge + Facebook App
Try the LyricWiki Challenge
Facebook App!
Friend spotlight (info)
Indiana Jones Wiki

why the ad?