Hi, Thanks Paul for ur help. This is what I am doing ........
_url = "https://www.google.com/health/feeds/register/ui/ (my_profile_id)"; String data = "<ContinuityOfCareRecord xmlns=\'urn:astm-org:CCR \'><Body><Medications><Medication><Product><ProductName><Text>new_medication</ Text></ProductName></Product></Medication></Medications></Body></ ContinuityOfCareRecord>"; _conn = (HttpsConnection)Connector.open(_url); _conn.setRequestMethod(HttpConnection.POST); _conn.setRequestProperty("Content-Type", "application/atom+xml"); _conn.setRequestProperty ("Authorization", "GoogleLogin auth="+ auth); _conn.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/ CLDC-1.0"); _conn.setRequestProperty("Content-Language", "en-CA"); _os = _conn.openOutputStream(); _os.write(data.getBytes()); _os.flush(); responsecode = _conn.getResponseCode(); But I always get a BadRequest as the response code. Is this an incorrect way of doing things. Pls suggest. bbye -- 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.
