Export (0) Print
Expand All

WebApplicationConnection Class

HealthVault
Represents an authenticated interface to HealthVault.

Namespace: Microsoft.Health.Web
Assembly: Microsoft.Health (in Microsoft.Health.dll) Version: 2.1.0.0 (1.15.1003.9505)

public class WebApplicationConnection : AuthenticatedConnection

Most operations performed against the service require authentication. A connection must be made to HealthVault to access the web methods that the service exposes. The class does not maintain an open connection to the service. It uses XML over HTTP to make requests and receive responses from the service. The connection just maintains the data necessary to make the request.

An authenticated connection takes the user name and password, and authenticates against HealthVault and then stores an authentication token which is then passed to the service on each subsequent request. An authenticated connection is required for accessing a person's health record.

For operations that do not require authentication, the AnonymousConnection or ApplicationConnection class can be used.
Show:
© 2014 Microsoft