This simple example demonstrates how webservices developed using JAX-WS can be called from javascript. For the javascript part: mootools, jquery and dojo are taken as example APIs.