Hi Stefano,

Since you're using GoogleService, try this:
System.out.println(entry.getXmlBlob().getBlob());

If you were using H9Service, you would be able to use
getContinuityOfCareRecord(), but there's current a bug:
http://code.google.com/p/gdata-java-client/issues/detail?id=91

Eric

On Jan 21, 8:03 am, Stefano <[email protected]> wrote:
> Hi everybody, I have a problem with my Java Application, a simple Java
> Class that retrieve the CCR records of a profile ID on H9 SandBox:
> here's the code
>
> public class HealthProfile
> {
>
>         private static final String FEED_BASE_PATH = "http://www.google.com/
> h9/feeds/";
>
>         private static final String PROFILE_FEED_PATH = FEED_BASE_PATH +
> "profile/";
>         private static final String REGISTER_FEED_PATH = FEED_BASE_PATH +
> "register/";
>
>         private static final String PROFILE_LIST_URL_PATH = PROFILE_FEED_PATH
> + "list";
>
>         public static void main (String [] args) throws Exception
>         {
>                 String username = "[email protected]";
>                 String password = "Ppassword";
>
>                 GoogleService service = new GoogleService("weaver", "Stefano
> Bianchi");
>                 // HealthService service = new HealthService ("Ficus");
>                 service.setUserCredentials (username,password);
>
>                 Feed profileListFeed = service.getFeed(new URL
> (PROFILE_LIST_URL_PATH), Feed.class);
>                 String profileId = "";
>                 for (Entry profileListEntry : profileListFeed.getEntries())
>                 {
>                         profileId = ((TextContent) 
> profileListEntry.getContent()).getContent
> ().getPlainText();
>                 }
>                 System.out.println ("Profile ID: "+profileId+"\n");
>                 ProfileFeed feed = service.getFeed(new URL(PROFILE_FEED_PATH 
> + "ui/"
> + profileId), ProfileFeed.class);
>                 for (ProfileEntry entry : feed.getEntries())
>                 {
>                         
> System.out.println(entry.getContinuityOfCareRecord().getXmlBlob
> ().getBlob());
>                 }
>     }
>
> }
>
> On this instruction (the last): System.out.println
> (entry.getContinuityOfCareRecord().getXmlBlob().getBlob());
> I get a NullPointerException from the compiler... why???
> Thank you.
>
> Stefano Bianchi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Health Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/googlehealthdevelopers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to