WS_SERVICE_CONTRACT structure (webservices.h)

Specifies a service contract on an endpoint.

Syntax

typedef struct _WS_SERVICE_CONTRACT {
  const WS_CONTRACT_DESCRIPTION       *contractDescription;
  WS_SERVICE_MESSAGE_RECEIVE_CALLBACK defaultMessageHandlerCallback;
  const void                          *methodTable;
} WS_SERVICE_CONTRACT;

Members

contractDescription

The typed contract metadata. See WS_CONTRACT_DESCRIPTION. Optional, if defaultMessageHandlerCallback is given.

defaultMessageHandlerCallback

Callback for processing unhandled messages. Optional if contractDescription is given.

methodTable

The function table. Mandatory, if contractDescription is given.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Header webservices.h