Read about how this simple Bungee-powered SugarCRM application performs the basic functionality of authentication, reading data, and writing data against the Salesforce.com webservice.
The code is well commented and straightforward, providing an excellent foundation for SugarCRM developers to base their own code on.