updated to use web service on appfog.