WS_DECODER_END_CALLBACK callback function (webservices.h)

Decodes the end of a message.

Syntax

WS_DECODER_END_CALLBACK WsDecoderEndCallback;

HRESULT WsDecoderEndCallback(
  [in]           void *encoderContext,
  [in, optional] const WS_ASYNC_CONTEXT *asyncContext,
  [in, optional] WS_ERROR *error
)
{...}

Parameters

[in] encoderContext

The decoder instance returned by the WS_CREATE_DECODER_CALLBACK.

[in, optional] asyncContext

Information on how to invoke the function asynchronously, or NULL if invoking synchronously.

[in, optional] error

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

Return value

Return code Description
E_OUTOFMEMORY
Ran out of memory.
E_INVALIDARG
One or more arguments are invalid.
Other Errors
This function may return other errors not listed above.

Remarks

The decoder can use the callback passed to WS_CREATE_DECODER_CALLBACK to read the encoded data of the message.

This callback is not invoked until WS_DECODER_DECODE_CALLBACK returns 0 bytes.

Requirements

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