WS_SERVICE_STUB_CALLBACK callback function (webservices.h)

Invoked by service model to delegate to the service operation call. This callback is generated by wsutil.exe for every service operation. It is defined on the WS_OPERATION_DESCRIPTION for each service operation.

Syntax

WS_SERVICE_STUB_CALLBACK WsServiceStubCallback;

HRESULT WsServiceStubCallback(
  [in]           const WS_OPERATION_CONTEXT *context,
  [in]           void *frame,
  [in]           const void *callback,
  [in, optional] const WS_ASYNC_CONTEXT *asyncContext,
  [in, optional] WS_ERROR *error
)
{...}

Parameters

[in] context

The context within which this callback is being invoked.

[in] frame

Pointer to the method frame.

[in] callback

Pointer to the callback function to which the stub function corresponds to.

[in, optional] asyncContext

Specifies whether the callback can run asynchronously.

[in, optional] error

Specifies where additional error information should be stored if the function fails.

Return value

This callback function does not return a value.

Remarks

A generated callback, it is recommended that the application do not implement this callback on their own.

Requirements

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