The latest release of HealthVault SDK has a sample called “OfflineAccess”. I posted more details on how to use it on healthvault blog.