I have looked at the sample code, but there is one (probably important) difference :
instead of a ServiceFeatureTable, we are using a GeodatabaseFeatureTable - all operations are done off-line.
This also means that there is no applyEdits() method to invoke.
Updating attributes works fine, by the way, but updating geometry is causing me headaches....