The new Force.com for Google App Engine lets developers create web and business applications that span both salesforce.com and Google's cloud computing platforms, and take advantage of the key features of both. The new offering adds Java language support in Google App Engine in application development projects on Force.com.

Force.com provides developers with a complete environment with which they can quickly build business applications that run on salesforce.com's trusted global infrastructure. The toolkit means that developers who build consumer-oriented Web applications on Google App Engine can now easily leverage enterprise data and execute sophisticated logic residing in Force.com.

What is Force.com for Google App Engine?

Force.com for Google App Engine provides Java and Python libraries that allows you to access the Force.com Web Services API from within Google App Engine applications. Once it is installed in your Google App Engine application, that application can seamlessly begin to make Force.com Web Services API calls. The Force.com Web Services API lets you query and manipulate data in a Force.com environment—effectively letting you tap into the Force.com platform from within any Google App Engine application.

The Java toolkit supports the complete Partner WSDL of the Force.com Web Services API. All operations and objects are included in the library and documentation. If you are a Java developer, you can also leverage the Java resources found here.

The Python toolkit supports many of the key Force.com Web Services API calls. Some of the methods covered by the toolkit include Create, Update, Query and describeGlobal.

The following code samples show how easy it is to create a new Account record on Force.com from within your App Engine application:

Java Sample

try { 
  SObject account = new SObject();
  account.setType("Account");
  account.setField("Name", "My New Account" );
  account.setField("Phone", "123 244 3455");
  connection.create(new SObject[] { account });
} 
catch ( ConnectionException ce ) { 
  log.warning(ce.getMessage());   
}


Python Sample

sobjects = [] 
new_acc = { 'type': 'Account', 'name' : 'My New Account' } 
sobjects.append(new_acc) 
results = client.create(sobjects)

To get started, simply install the Java toolkit or the Python toolkit and then check out the corresponding developer guides: Java Getting Started or the Python User Guide

Toolkit Resources and Documentation

The following resources will get you up and started with the toolkits:

Java Resources

  • The Force.com for Google App Engine Java Code Share project is the home for the source code, and provides pointers to the JAR files for installation.
  • Installation Instructions provide instructions on how to install and deploy the toolkit.
  • The Web Service Java Docs provide documentation useful for Java programers.
  • The Partner Library Java Docs provide method and object details for the Partner Library that used to access the Force.com Web Services API (Partner WSDL).

Python Resources

  • The Force.com for Google App Engine Python Code Share project is the home for the source code, and provides pointers to the library for installation.
  • Installation Instructions provide instructions on how to install and deploy the toolkit.
  • The User Guide provides examples of how to code against the API.

Other Resources

Check out these other resources that may be of interest:

Force.com for Google App Engine in the News