I'm using Client Login for editing Google health items. I use the
following code to update an item :

service.update(new URL(REGISTER_FEED_URL + FRONT_SLASH + _profileId +
FRONT_SLASH + googleitemId), notice);

where REGISTER_FEED_URL = "https://www.google.com/health/feeds/
register/ui"
_profileId : google health profile id
googleitemId: google item id (the item i'm going to edit)
notice: the notice is constructed use the following code :
                        Entry notice = new Entry();
                        notice.setTitle(new PlainTextConstruct("Testing code"));
                        notice.setContent(new PlainTextConstruct("Test"));
                        XmlBlob ccrgElement = new XmlBlob();
                        ccrgElement.setBlob(ccrg);
                        notice.setXmlBlob(ccrgElement);
ccrg: updated CCR document holding the modifications

On running the code i get the following error in console:

com.google.gdata.util.ResourceNotFoundException: Not Found
Oops an error has occured.
Please include the following information in your error report:

at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
(HttpGDataRequest.java:499)
        at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
(GoogleGDataRequest.java:555)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(HttpGDataRequest.java:480)
        at com.google.gdata.client.http.HttpGDataRequest.execute
(HttpGDataRequest.java:459)
        at com.google.gdata.client.http.GoogleGDataRequest.execute
(GoogleGDataRequest.java:527)
        at com.google.gdata.client.Service.update(Service.java:1422)
        at com.google.gdata.client.Service.update(Service.java:1377)
        at com.google.gdata.client.GoogleService.update(GoogleService.java:
544)
        at in.arw.healthagent.googlehealth.GoogleHealthSession.updateEntry
(GoogleHealthSession.java:145)
        at in.arw.healthagent.googlehealth.GoogleHealthSession.main
(GoogleHealthSession.java:236)


Please help me out where am i getting wrong ?
--~--~---------~--~----~------------~-------~--~----~
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