Health Vault Event Notification

May 3, 2011 at 6:48 PM

Hello,


I was reading the blog by Eric ---> http://blogs.msdn.com/b/ericgu/archive/2011/01/20/healthvault-event-notifications.aspx

and it says that now healthvault can send notifications to our Applications if an event occurs like Blood Pressure reading update by the user.

Is there any java code available for it so that I can test it.

 

Thanks,

Amit Goyal

Coordinator
May 4, 2011 at 12:07 AM

There are helper classes for the Eventing methods:  SubscribeToEvent, UnsubscribeToEvent, UpdateEventSubscription, GetEventSubscriptions.  In order to receive events, you will need to be able to accept inbound HTTPS connections.

There are some utilities that can help in the C# Sample here.

--Rob

May 4, 2011 at 1:31 PM

Thanks Rob .... Are their any test methods available in the java lib so that I could test these Methods....

 

Thanks,

Amit Goyal

Coordinator
May 4, 2011 at 11:18 PM

Hi Amit,

You can look in the unit tests for EventSubscriptionsTest. 

--Rob

May 27, 2011 at 11:59 AM

Hello Rob,

 

I looked into EventSubscriptionsTest and changed the url to match mine httpChannel.setUrl("https://...../HVConnect/hvconnect");

but still when I tested it i get the respose as :

 

<?xml version="1.0" encoding="utf-8"?><response><status><code>134</code><error><message>The subscription delivery url must use the same domain as the application.</message></error></status></response>

what wrong am I doing here....

Thanks,

Amit Goyal

Coordinator
May 30, 2011 at 2:48 AM

The notification url must be in the same domain as your application's action url.  If you are using the test app-id, it has http://localhost registered as the action url.

You can create your own applicaitons here.

--Rob

May 30, 2011 at 7:31 PM

Hello Rob,

 

I have configured action url in my application settings as  https://192.168.1.13:8080/HVConnect/hvconnect and in the code for EventSubscriptionsTest as httpChannel.setUrl("https://192.168.1.13:8080/HVConnect/hvconnect");

but still the same error.

 

Thanks,

Amit Goyal

Coordinator
Jun 1, 2011 at 5:13 AM

Sometimes it takes a while for changes to your application to propagate through the system.  192.168.1.13 will be unreachable from HealthVault, however.  You will need a public IP.

--Rob