webservices: Add support for WS_MESSAGE_PROPERTY_BODY_READER/WRITER in WsGetMessageProperty.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2016-09-28 12:38:02 +02:00 committed by Alexandre Julliard
parent c8a1b56c47
commit c7b606ea9c
1 changed files with 10 additions and 0 deletions

View File

@ -260,6 +260,16 @@ HRESULT WINAPI WsGetMessageProperty( WS_MESSAGE *handle, WS_MESSAGE_PROPERTY_ID
*(WS_XML_BUFFER **)buf = msg->buf;
return S_OK;
case WS_MESSAGE_PROPERTY_BODY_READER:
if (!buf || size != sizeof(msg->reader_body)) return E_INVALIDARG;
*(WS_XML_READER **)buf = msg->reader_body;
return S_OK;
case WS_MESSAGE_PROPERTY_BODY_WRITER:
if (!buf || size != sizeof(msg->writer_body)) return E_INVALIDARG;
*(WS_XML_WRITER **)buf = msg->writer_body;
return S_OK;
case WS_MESSAGE_PROPERTY_IS_ADDRESSED:
if (msg->state < WS_MESSAGE_STATE_INITIALIZED) return WS_E_INVALID_OPERATION;
*(BOOL *)buf = msg->is_addressed;