geo.getEvents uses some elements for the http://www.w3.org/2003/01/geo/wgs84_pos# Geo positioning namespace. Normally, this is an RDF namespace, but to be able to use it in XML we also created an XSD for it:

Tools for .Net development

Tools for Python development

Tools for Java development

There are currently 2 active projects for Java bindings: janni kovacs' Last.fm API bindings and the one in this project.

Based on the XSD's above, we generated a Java library containing:

Java bean classes

Unmarshalling (converting XML to these Java classes)

Calling the Last.fm API, returning unmarshalled response

The first 2 features are currently implemented by leveraging Apache jaxme, an open-source JAXB implementation.

Calling the Last.fm API is currently done with some special-purpose code. Preferably, however, we'd have this code generated based on a WSDL 2.0 definition, which has support for RESTful webservices. We have some initial work done, but so far the Axis2 Maven plugin is refusing to generate code based on it.

Downloading

Currently, get the api lib by checking out the lastfmlib project from last.fm and doing a 'mvn package'.

Example

A simple example project (web application) using the lib is also included in CVS. It demonstrates fetching some events for a certain location, and listing any of those events which include any of the top artists for a given user.