WsReadEnvelopeEnd function (webservices.h)
Reads the closing elements of a message.
The operation allows for reading of messages from sources other than Channels. If the source is a Channel use WsReadMessageEnd.
Syntax
HRESULT WsReadEnvelopeEnd(
[in] WS_MESSAGE *message,
[in, optional] WS_ERROR *error
);
Parameters
[in] message
A pointer to the Message object read. The pointer must reference a valid WS_MESSAGE.
[in, optional] error
A pointer to a WS_ERROR object where additional information about the error should be stored if the function fails.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
The input data was not in the expected format or did not have the expected value. |
|
Ran out of memory. |
|
One or more arguments are invalid. |
|
This function may return other errors not listed above. |
Remarks
The message state must be WS_MESSAGE_STATE_READING. If called in the correct state the message state is set to WS_MESSAGE_STATE_DONE regardless of function success or failure.
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 |
Library | WebServices.lib |
DLL | WebServices.dll |