locked
Access denied RRS feed

  • Question

  • Hello,

    I am currently integrating our application with HealthVault. As our application is not built in .net, I choose using offline web service to update our data into HealthVault. Following offline access documents, I get the personal_id and record_id. But when try to use "PutThings" method to add weight measurment data, I get a "Access is denied" response. I have granted the all offline permission for weight measurement in Configuration Center.

    Anything I missed in Requset?

    Any advice would be appreciated.

    Jun


    Below is the request xml:

    <wc-request:request xmlns:wc-request="urn:com.microsoft.wc.request">

        <auth>

           <hmac-data algName="HMACSHA1">

               tTF4YKXJQVRTjwY683x9muupjzo=

           </hmac-data>

        </auth>

        <header>

           <method>PutThings</method>

           <method-version>1</method-version>

           <record-id>d2df9249-f026-4467-b29d-79990845a6c2</record-id>

           <auth-session>

               <auth-token>


    ASAAAE57vlXwS8VDupO6/FSWlMZLmdMdQucEzxQXYhr9+4fNXUDftpv2gI/MYj6QjIt1ga2J
    fTMP77OAtV9fOuwSegITK7R2fpLt/8WY1C7RgY/8JSFFd0BJ5su5MR+tVcozRjN4wLF2XlSg
    K0vABECUlYdpqFRWNv/iYPWrcFpZpwEUZzHqdi7YD1cbUb7S+DCGm3V2Q0n4IopRYoadp5Vk
    j6oswmuh

               </auth-token>

               <offline-person-info>

                  <offline-person-id>

                      b8d3cdfa-ca1c-4eaa-aa20-ef0d71a1f7da

                  </offline-person-id>

               </offline-person-info>

           </auth-session>

           <language>en</language>

           <country>US</country>

           <msg-time>2008-08-19T17:08:00.719-04:00</msg-time>

           <msg-ttl>180000</msg-ttl>

           <version>0.0.0.1</version>

           <info-hash>

               <hash-data algName="SHA1">

                  BLSLU/dw6ShY/UckpJJTTDEDumE=

               </hash-data>

           </info-hash>

        </header>

        <info>

           <thing>

               <type-id>3d34d87e-7fc1-4153-800f-f56592cb0d17</type-id>

               <data-xml>

                  <weight>

                      <when>

                         <date>

                             <y>2008</y>

                             <m>8</m>

                             <d>19</d>

                         </date>

                         <time>

                             <h>17</h>

                             <m>8</m>

                             <s>0</s>

                         </time>

                      </when>

                      <value>

                         <kg>99.99</kg>

                         <display units="lb" units-code="lb">

                             99.99

                         </display>

                      </value>

                  </weight>

                  <common />

               </data-xml>

           </thing>

        </info>

    </wc-request:request>

    Thursday, August 21, 2008 2:24 AM

Answers

  • hi Jun -

    Lets take this to the Java codeplex forum:
    http://www.codeplex.com/HealthVaultJavaLib/Thread/View.aspx?ThreadId=32646

    I'll post this follow-up there.

    regards,
    Vaibhav
    Thursday, August 21, 2008 8:24 PM

All replies

  • hi there :

    Can you post the XML body of the response you are getting? Are you using Java library or any other library. Are you able to use the application for any other methods? A sample for PutThings for OfflineAccess is here.

    regards,
    Vaibhav



    Thursday, August 21, 2008 4:16 PM
  •  

    I am using Java library. I am be able to do "GetAuthorizedConnectRequests" and "CreateConnectRequest". I have tried to do "GetThings", but it failed too. Below is the xml of the response.

     

    <?xml version="1.0" encoding="utf-8"?>
    <response>
     <status>
      <code>11</code>
      <error>
       <message>Access is denied.</message>
      </error>
     </status>
    </response>

     

    Thanks

    Jun

    Thursday, August 21, 2008 4:50 PM
  • hi Jun -

    Lets take this to the Java codeplex forum:
    http://www.codeplex.com/HealthVaultJavaLib/Thread/View.aspx?ThreadId=32646

    I'll post this follow-up there.

    regards,
    Vaibhav
    Thursday, August 21, 2008 8:24 PM