The demo database and the Notesin9 movie shows how to use the built in webservice consumer to generate code to use in XPages