WS_ENCODER_ENCODE_CALLBACK callback function (webservices.h)
Encodes a message.
Syntax
WS_ENCODER_ENCODE_CALLBACK WsEncoderEncodeCallback;
HRESULT WsEncoderEncodeCallback(
[in] void *encoderContext,
const WS_BYTES *buffers,
[in] ULONG count,
[in, optional] const WS_ASYNC_CONTEXT *asyncContext,
[in, optional] WS_ERROR *error
)
{...}
Parameters
[in] encoderContext
The encoder instance returned by the WS_CREATE_ENCODER_CALLBACK.
buffers
The buffers of data to write.
[in] count
The number of buffers to write.
[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 |
---|---|
|
Ran out of memory. |
|
One or more arguments are invalid. |
|
This function may return other errors not listed above. |
Remarks
The encoder can use the callback passed to WS_CREATE_ENCODER_CALLBACK to write the encoded data of the message.
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 |