Commit Graph

237 Commits

Author SHA1 Message Date
Hans Leidekker 459b7caeb2 webservices: Implement WS_STRUCT_IGNORE_TRAILING_ELEMENT_CONTENT.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:41 +02:00
Hans Leidekker 829b225546 webservices: Fix node insertion in the reader when the current node is an end element.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:36 +02:00
Hans Leidekker ad57c7c72a webservices: Determine field size from write options and type size.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:32 +02:00
Hans Leidekker b26b265561 webservices: WS_FIELD_OPTIONAL takes precedence over WS_FIELD_NILLABLE.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:28 +02:00
Hans Leidekker b2fe675791 webservices: Handle nil elements in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:22 +02:00
Hans Leidekker 9599479ed3 webservices/tests: Add more text type tests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:19 +02:00
Hans Leidekker 6cd80610c8 webservices: Strip trailing zeros from time fraction.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 16:57:16 +02:00
Akihiro Sagawa b98293e405 webservices: Add support for decoding supplementary characters' references.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-10 21:11:24 +02:00
Akihiro Sagawa dd4c126e95 webservices: Add support for decoding decimal numeric character references.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-10 21:11:23 +02:00
Akihiro Sagawa 064edd2d8b webservices: Avoid decoding a nul character reference.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-10 21:11:21 +02:00
Marcus Meissner 9767b5ebcf webservices: Add error checking (Coverity).
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-10 21:10:12 +02:00
Hans Leidekker c8a90e5de9 webservices: Add support for writing WS_BYTES values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:51:52 +02:00
Hans Leidekker 8ce55bc98f webservices: Add support for reading WS_BYTES values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:51:51 +02:00
Hans Leidekker 503d152bfb webservices: Add support for writing WS_DATETIME values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-04 14:51:51 +02:00
Michael Stefaniuc 06072b447e webservices/tests: Use IsEqualGUID() to compare GUIDs.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-29 22:40:49 +09:00
Sebastian Lackner cece771b58 webservices: Correctly grow buffer size in receive_message.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-29 17:47:34 +09:00
Sebastian Lackner 9ef108ad6a webservices: Do not return uninitialized hr from write_headers_transport.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-29 17:47:32 +09:00
Hans Leidekker dc014df696 webservices: Implement WsReceiveMessage.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:46 +09:00
Hans Leidekker e9a2505276 webservices/tests: Add tests for WsSendMessage.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:46 +09:00
Hans Leidekker 1032b68568 webservices: Implement WsSendMessage.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:45 +09:00
Hans Leidekker efcf63cc71 webservices: Don't write an empty header element for messages that have an action.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:45 +09:00
Hans Leidekker c7b606ea9c 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>
2016-09-28 23:17:45 +09:00
Hans Leidekker c8a1b56c47 webservices: Use public channel functions in the service proxy implementation.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:45 +09:00
Hans Leidekker e4fd90596d webservices: Fix corner cases in write option handling.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:45 +09:00
Hans Leidekker 517638695e webservices: Escape XML special characters where needed.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:45 +09:00
Hans Leidekker 2bc231e020 webservices/tests: Add another repeating element test.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 00:02:07 +09:00
Hans Leidekker 66899dd6db webservices: Add support for optional and nillable fields in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 00:02:07 +09:00
Hans Leidekker 9c6c813daa webservices: Implement WsWriteArray.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 00:02:06 +09:00
Huw Davies f65b5e354b webservices/tests: Initialise dictionary to NULL.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 00:34:24 +09:00
Sebastian Lackner 4358f7c39e webservices: Fix invalid memory access in remove_header.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 21:21:31 +09:00
Sebastian Lackner 0238d47031 webservices: Fix handling of duplicate headers in WsRemoveCustomHeader.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 21:21:31 +09:00
Sebastian Lackner 5f51b603fc webservices: Fix handling of duplicate headers in WsAddCustomHeader.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 21:21:30 +09:00
Hans Leidekker 23a64ca074 webservices: Implement WsReadBody.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:23:37 +09:00
Hans Leidekker 6b583f9350 webservices: Implement WsReadEnvelopeEnd.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:23:33 +09:00
Hans Leidekker a8c343552b webservices: Implement WsReadEnvelopeStart.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:23:29 +09:00
Hans Leidekker b9d751d542 webservices: Ignore unimplemented struct options in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:23:24 +09:00
Hans Leidekker 6f048bbf0d webservices: Add a stub implementation of WsAbortServiceProxy.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:23:22 +09:00
Hans Leidekker 1acc1b9ee4 webservices: Implement WsRemoveCustomHeader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:23:18 +09:00
Hans Leidekker 147cd6b35b webservices: Implement WsAddCustomHeader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:23:13 +09:00
Hans Leidekker f3d6591155 webservices: Store standard headers in an XML buffer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:23:05 +09:00
Hans Leidekker 1687e1bfb8 webservices/tests: Add a test for WsWriteText.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 10:39:36 +09:00
Hans Leidekker 81d978902d webservices: Add support for optional and nillable fields in the writer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 10:39:34 +09:00
Hans Leidekker e87c64f69c webservices: Allow structures to be passed by value in WsWriteType.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 10:39:33 +09:00
Hans Leidekker 06fb21c58a webservices: Ignore unimplemented struct options in the writer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 10:39:31 +09:00
Hans Leidekker 864559db02 webservices: Add support for writing WS_STRING and WS_XML_STRING values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 10:39:29 +09:00
Hans Leidekker 3950998778 webservices: Fix the condition to determine when to skip writing a namespace attribute.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 10:39:27 +09:00
Hans Leidekker 633828f832 webservices: Flush the writer first in WsWriteXmlBuffer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 10:39:25 +09:00
Hans Leidekker 95dd6a8738 webservices: Implement WsRemoveMappedHeader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 00:09:38 +09:00
Hans Leidekker ecd1fa8f0f webservices: Implement WsAddMappedHeader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 00:09:38 +09:00
Hans Leidekker 41da198a6e webservices: Validate the handle in channel functions.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 00:09:38 +09:00