A cancer vaccine has shown promising results in treating patients with advanced forms of the illness.