HealthServiceConnection Class

Definition

Simplifies access to the HealthVault service. This class is abstract.

public abstract class HealthServiceConnection
Inheritance
HealthServiceConnection
Derived

Remarks

A connection must be made to the HealthVault service 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.

You cannot directly instantiate this abstract class. Instead, instantiate an instance of ApplicationConnection or AuthenticatedConnection to communicate with the Microsoft HealthVault service.

Properties

ApplicationId

Gets the calling application's ID.

AuthenticationToken

Gets the authorization token to be used in all requests for this user.

CancelAllRequests

Cancels any pending request to HealthVault that was initiated with this connection instance and prevents any new requests from being made.

Credential

Gets or sets the application credential that is used to access HealthVault.

Culture

Gets or sets the language to be sent to the server when making requests.

RequestCompressionMethod

Gets or sets the request compression method for this connection.

RequestTimeoutSeconds

Gets or sets the request timeout in seconds.

RequestTimeToLive

Gets or sets the request time-to-live in seconds.

RequestUrl

Gets the HealthVault web-service URL.

ResponseCompressionMethods

Gets or sets the comma-separated response compression methods.

ServiceInstance

Gets the HealthVault web-service instance associated with this connection.

WebProxy

Gets or sets the proxy to use with this instance of HealthServiceConnection.

Methods

CreateRequest(String, Int32)

Provides a wrapper around the XML request for the web service.

GetServiceDefinition(ServiceInfoSections, DateTime)

Gets information about the HealthVault service corresponding to the specified categories if the requested information has been updated since the specified update time.

GetServiceDefinition(DateTime)

Gets information about the HealthVault service only if it has been updated since the specified update time.

GetServiceDefinition()

Gets information about the HealthVault service.

GetServiceDefinition(ServiceInfoSections)

Gets information about the HealthVault service corresponding to the specified categories.