It looks like you're creating a new CCR blog
and trying to PUT that to the server.  Instead,
read the user's profile, edit the <entry> of
interest, and PUT the updated <entry> back
on the server.  Make sure to use the <entry>'s
<link rel='edit'> link for doing that.

https://www.google.com/health/feeds/profile/ui/PROFILEID/ENTRYID

Eric

On Apr 1, 12:55 am, "[email protected]" <[email protected]> wrote:
> Hi,
>
> Whenever i m going to edit any category entry i got the following
> error,
> Oops an error has occured.
> Please include the following information in your error report:
>
> AP52v_T23VZXyOO64A6efOtvPDqLRTo86p2Rz05syhSqFwiOxDukRVyiPN7Yzp01Y8mNL8nMkQr0nFFm
> rNwF0V2IYrdUzEdvd5J4C_UURV-3WRLE=================0d1cCP9KyU3iiTkhzqx0E4lVnKQFHrq
> 3B-mjJ4cAohQ0oVypr3o9ZD===================================oEJ2-
> gWetZaoiJbViJQZ1c
> BTktOrGv6bKItypsSisr==========================================oVIbOrmid1Qh-
> Ki2-z
> Wdyr8XXhe9S9n9icf=============u6JSNsikzRpv6ZNUWIDaL==============-
> p291Izt5ZguqB9
> NNVU1Qrmqu0NZp===========Kj-g2_IY59MTcqcXSqA4-
> T_ApYC1kba============UwWP39Q7CjZY
> mbhtfnOsuQA===========D_WK6zV9dra1MbgNP7kO5e-L14-
> Hu1457HNoD===========ADos_5UXc7
> knrP3bzx_==========cXGKtLltMyV85-
> Bt5Yh3d9ECjARaMICuhyjeXgTbwHK=========SJP4B3u1P
> cpm88aA==========V8b-22======Bh6nSJ_C3AxpQ406Wc8HQmx======6mwACR=========5kujoAA
> X3nktd=========9dd8d3uT==zG==RmVG5jZM_Xb0ZXko92_P29x==u0==dNYGAqoY========elo7gC
> tK4zm========XlNGHLrdCR======BsQtFZVOPSyI0oDPFAZOuVQ======yTGE8_AeP3=======sgXzN
> 8VbBg======j7luU2vATuh8Zp7a1V1rsYZwXLcsNLsVuvc2Ncr2gq81A-uC--
> aF7JQklj======-tohz
> SG3n======scx4QJWUmjTYdnLoKpf2fAehKScNjOziMmsgxJ1FRVi_0-
> p3qcEjHgO6iGOT======oM4v
> CfLj======r8i7CmogGZP9WUosmY6n9fXazp6QpvEs7IP81gtRSeUSzBKbbE3hHKiOHbkT======lfIw
> bvs======u6s0G3kY7vr53tzT_lseD2nNuocow6MwFCKEXBDN74SOPaGfoKPNACXtJwZE5H======zlB
> XM7======mrFqr2Xohg09W4Qgdf9-
> LX==================5qf1gT4P6ijiHabpF58ZQv======VxM
> uHi======2FL39efZIernYzmVp1==========================-
> vEsUX_dmtFhfrhB1a======eNH
> fhI======UDzQaawdvcbeRbH=============1dzPiW=============61qLOMXblUiVSQy======FBy
> JeGK======MS_zYmVpEXgb===========a_WaFj00eCAIlL===========hf-
> PZkEmbtVV======Ajsg
> 7csk======WKnz7frKNiS=========VpNYfsClirJyqJvw7N25=========w90bSOaK0A5======PrXg
> Q0Fb8======9SzTeveIKb=======xj8RbC6B_T5G0tzIS7h0G2PI=======wT1MhFxcXp======bOXvR
> K1Vpa========fAA_Z4XZG====lg0TLediezaljpSgJ44KPFitJy5C1====TMeNzfWUJ=======yHZCp
> zgY7HF=========RbMm9Uxa9YcmsRnKZl8zFZFunl8I1aWkzTeFZQ1fc0cLT4zc1no========78nskY
> JPFgDdp==========Sz9VbPs_eGOdAJ9DCSXlrW8bdJed3J6uD-
> yQWQYBAcWYgTc=========JSUlgFk
> LHu72kbMb==========Jj3GiICXJYEn9hWX2XS-
> nXm9AezxsPcxGtBM7eqwycl=========DaxbG-TNM
> tWfLxhQTa_g===========89Sk5gJbwdTGZjr6acQl_nxtW272MBYzmue0q===========Pa6NmSOZK2
> QbYKaevziSSHUU===========y67i52UypPLnYVx0lygshLN4NqmpAX-
> ============vbNtr7Kff-CK
> EHYQcj1v-
> L5m5Fpsl=============Ckgf_OFEOY2wmmW6tQKw2==============k4iECVwGQgbqyXR
> 8fcVGSN4qiPL5r5_bt_l==========================================cU0Pgoxrp2ov8Dx_oi
> 3XWJvJvZt4dH7XMQXR0v3sF===================================BlBQuFEOwyo8u2herVid_n
> ead3-5JRG3oclo5BRRq48JjeD7X_RLhu=================RqxJVjFhzOlpjWGCef-
> gZNfiFxFDLY8
> 78vpViQty9F5dg-2ZloXZGgu9BhMt4y6HdGw5b3FsXk_05bvpoLO_El0yYsY1uOIycEzXLbifsB72Vyd
>
> 65fmhr1TnVUksqih2S_7M5hurW3fBNfviwvWV0P94ORi8r75S-
> qOTX001T9_Rx064JCjCC1_T6Lo20G6
> 6Hytgxbjc0xzyjNXQk3QA2pKTOev002y=================nrWBe60HehxEBtOQY-
> l7kFPvSAloJVG
> gef9Q3uLvNokcQNhmHk7EcX===================================WW5cMkbFdoESUOU2AwrzkV
> SvJQeLPaETSbIE8l1pvT==========================================qYQhDZRWOrEgxL8BDd
> gKDUydDVRgMMMqDwv=============J1R7LUBD2C0uHE1MWuHky==============stDq7G00xCoH1mS
> Xfhv_-9PlPVy8I===========vf_Tp1SYtzqmIS9WGmDIsQerxn57qyX============22Nx8bS-
> xl-t
> eJ-G9YjAY4T===========ymvs7FUuBHUZL3l7adDWdKDyct0SZKuqW9y-
> O===========_CE0PSTz_W
> hTpleLJxO==========CO8BdoOXB_vHLEYZCG08FW8bNIRWuXw74EaneYYWjk0=========VDce1ukPQ
> EjL-
> OwI==========vopSM7======NAU6nkWqvO0K5O_QTrqHFhD======tv5xBX=========lPPj9uw
> -2p7AW=========vIAbRbJQ==ZC==xiej6iE127ofGQ0pO8ew-
> IX==sd==ObknGKj2========DuGdOG
> y3GNX========iutLVB6Ql6======cnnvSUuQqkkJFp1-03YE5hP======_EImSwSS6F=======gb5mO
> 3JJl-
> ======FobVpILG4de3_brfnvnpyAOzKu_j_dNL0CN1pgsDDSdx38OutLavL9EE56======vfNiG
> 5vQ4======48B3Q8H6sBYk2zC4FTHNojF6Cgt36ezpemTDHON5py6G3eOlKOln0tsp8exq======KofM
> UL1r======3QMS6dvx-7t98AkY51aXyABggVkPgPf8I4YdRIMF15GWGoLWwNI4BAOTu4Ek======mJwR
> 90v======qko1nSfpWEe6cWDiKvUC0U6BuiPk2n1Hrd2QKhyt8vQuDEhJuDxCJXG-
> EsArzl======Ab4
> 5MP======acZKyFOWCdrFG0jHmgSrd_==================KiQ0TH93Qd-FwAR-
> PUDpe5======qL1
> hoO======_U9aKsPiADkcW2ZsmH==========================6ETrkA42HdKGcH29Av======kJn
> OXq======1ROf1A-u6l-ihYr=============CZ8Zbk=============C1T4HOtq-
> CIcR5l======xz2
> hfwl======Ii0dzHMCTq_W===========X_1mk0zJlB_g==
>
> Below is my code:
> NSString *myStr = [NSString stringWithFormat:@"%...@%@/KsocKmsVicc",
> @"https://www.google.com/health/feeds/profile/ui/";, myProfileName];
>
>         NSMutableURLRequest *httpReq = [[NSMutableURLRequest alloc]
> initWithURL:[NSURL URLWithString:myStr] ];
>
>         [httpReq setTimeoutInterval:30.0];
>
>         [httpReq setHTTPMethod:@"PUT"];
>         //      [httpReq addValue:@"Content-Type" 
> forHTTPHeaderField:@"application/
> atom+xml"];
>         [httpReq addValue:@"application/atom+xml"
> forHTTPHeaderField:@"Content-Type"];
>
>         NSString* param = [NSString stringWithFormat:@"GoogleLogin auth=%@",
> [parameter objectForKey:@"Auth"]];
>
>         [httpReq setValue:param forHTTPHeaderField: @"Authorization"];
>
>         [httpReq addValue:@"Authorization" forHTTPHeaderField:param];
>
>         NSHTTPURLResponse *response = nil;
> NSString *strData=@"";
>         strData=@"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
>         "<entry xmlns=\"http://www.w3.org/2005/Atom\";>"
>         "<title type=\"text\">THE NOTICE'S TITLE</title>"
>         "<content type=\"text\">THE NOTICES SUBJECT LINE</content>"
>         "<ContinuityOfCareRecord xmlns='urn:astm-org:CCR'>"
>         "<CCRDocumentObjectID>Doc</CCRDocumentObjectID>"
>     "<Language><Text>English</Text></Language>"
>     "<Version>V1.0</Version>"
>     "<DateTime><ExactDateTime>2008</ExactDateTime></DateTime>"
>     "<Patient><ActorID>ACT_ID</ActorID></Patient>"
>     "<Body><Immunizations>";
>         strData=[NSString stringWithFormat:@"%...@%@",strData,[self
> AddImmunization1:@"CCRID" Date:@"2009-02-02" act_ID:@"Actor ID"
> act_ROle:@"Actor_Role" productNAme:@"My Old Product" value:@"20"]];
>
>         strData=[NSString stringWithFormat:@"%...@%@",strData, @" </
> Immunizations></Body></ContinuityOfCareRecord></entry>"];
>         NSString *requestBody = [[NSString alloc]
>
>                                                          
> initWithFormat:strData ];
>
>         [httpReq setHTTPBody:[requestBody
> dataUsingEncoding:NSASCIIStringEncoding]];
>
>         NSData *data = nil;
>
>         NSError *error = nil;
>
>         NSString* responseStr;
>
>         data = [NSURLConnection sendSynchronousRequest:httpReq
> returningResponse:&response error:&error];
>
>         if( [data length] >0)
>
>                 responseStr = [[NSString alloc] initWithData:data
> encoding:NSASCIIStringEncoding];
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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