Commit Graph

427 Commits

Author SHA1 Message Date
Hans Leidekker 079f84d918 webservices: Properly restore the reader position when the next element doesn't match.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-18 16:13:28 +02:00
Michael Stefaniuc 0c91b5ebcd webservices: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-06 12:58:59 +01:00
Hans Leidekker e3851a8740 webervices/tests: Add tests for out of range string IDs.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 16:03:15 +01:00
Hans Leidekker 69ea451bde webservices: Also set localname and value for xmlns attributes.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 16:03:14 +01:00
Hans Leidekker 5afd702c99 webservices: Simplify write_dict_string.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 16:03:12 +01:00
Hans Leidekker 3b6f7148b6 webservices: Don't write a colon for namespace attributes with empty prefix.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 16:03:10 +01:00
Hans Leidekker a3f80e3ab5 webservices: Take the output encoding into account in WsCopyNode.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 16:03:08 +01:00
Hans Leidekker 008efda737 webservices: Fix is_nil_element in binary mode.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-24 16:03:06 +01:00
Andrey Gusev 5485189eb0 webservices/tests: Fix resource leak.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-04 21:47:00 +01:00
Hans Leidekker 1ca988d4f4 webservices/tests: Register an exception with the firewall to avoid a dialog.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-18 12:35:13 +01:00
Hans Leidekker 209ad4c087 webservices/tests: Merge the listener tests into channel.c.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-18 12:35:13 +01:00
Hans Leidekker f85c6f283a webservices: Don't use the dictionary for UTF-16 text.
Although UTF-16 text is converted to UTF-8 before transmission it's
stored inline rather than in the dictionary.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-08 18:22:40 +01:00
Hans Leidekker 8b11866534 webservices: Enable dictionary lookup after setting the output buffer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-08 18:21:23 +01:00
Hans Leidekker ca0b46a10c webservices: Implement WS_REPEATING_ELEMENT_CHOICE_FIELD_MAPPING in the writer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-08 18:21:19 +01:00
Hans Leidekker bb586c7e73 webservices: Don't require specific writer state for element mappings in WsWriteType.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-08 18:21:14 +01:00
Hans Leidekker a81671b522 webservices: Store the async context directly in struct receive_message.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-08 18:21:11 +01:00
Zebediah Figura 48b581befd webservices: Stub WsAbortChannel().
Powerpoint 2016 calls this while loading some themes.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-17 10:28:40 +01:00
Hans Leidekker 6d2f4471ed webservices: Fix handling of namespace attributes in WsWriteNode.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-17 14:32:09 +02:00
Andrey Gusev 131397e784 webservices: Fix misplaced parenthesis.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-11 19:49:29 +02:00
Hans Leidekker c80c45127e webservices: Get rid of insert_string_cb.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 19:37:37 +02:00
Hans Leidekker 3076f5e3fb webservices: Always create a copy of strings to insert in the dictionary.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 19:37:34 +02:00
Hans Leidekker 0567952c70 webservices: Fix return value in read_type_text.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 19:37:32 +02:00
Hans Leidekker de139491f6 webservices: Set event handles to NULL on error.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 19:37:30 +02:00
Hans Leidekker a808821d72 webservices: Simplify get_field_size.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 19:37:26 +02:00
Hans Leidekker ca13227ebc webservices: Implement WS_REPEATING_ELEMENT_CHOICE_FIELD_MAPPING in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 12:12:39 +02:00
Hans Leidekker 04ae90993a webservices: Support more text types in is_empty_text_node.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 12:12:34 +02:00
Hans Leidekker 71121270ae webservices/tests: Add tests for asynchronous WsReceiveMessage.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 12:12:31 +02:00
Hans Leidekker 97ccfe2078 webservices: Add asynchronous support for WsReceiveMessage.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 12:12:26 +02:00
Hans Leidekker 049d8cfc7d webservices: Read the string table in all sized envelopes.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 12:12:21 +02:00
Hans Leidekker 9169053957 webservices: Use separate dictionaries for sending and receiving messages.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 12:12:18 +02:00
Hans Leidekker 98a3892412 webservices: Add traces.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 12:12:14 +02:00
Francois Gouget 73ef39fe63 webservices: Alloc_utf16_text() is unused, so remove it.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:14 +02:00
Hans Leidekker 2946dc71aa webservices: Include a RelatesTo header in reply messages.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:01 +02:00
Hans Leidekker ab522ac59b webservices: Parse the MessageID header.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:01 +02:00
Hans Leidekker f9ae309767 webservices: Add support for multiple message descriptions in WsReceiveMessage.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:01 +02:00
Hans Leidekker e5704b4e1d webservices: Build a session dictionary for strings not present in the static dictionary.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:01 +02:00
Hans Leidekker 18a77c327e webservices: Also use the dictionary for writing UTF-8 text values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:01 +02:00
Hans Leidekker 7b0a05c151 webservices: Add a mechanism to use the builtin static dictionary in the writer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:01 +02:00
Hans Leidekker 7727e00178 webservices: Store the action header as WS_XML_STRING.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:01 +02:00
Hans Leidekker 1a28e34a91 webservices: Return HRESULT from insert_string.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:01 +02:00
Hans Leidekker 19f540dbcb webservices: Implement WsSendReplyMessage.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:01 +02:00
Hans Leidekker ffbddae542 webservices: Store headers in WsReadEnvelopeStart.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-06 17:31:00 +02:00
Hans Leidekker c51b41f905 webservices: Set cache control headers.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-25 13:58:49 +02:00
Hans Leidekker c94ccee16a webservices: Create a new HTTP request for each message.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-25 13:58:47 +02:00
Hans Leidekker 887af1b3bb webservices: Implement the Message Framing Protocol.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-20 16:27:05 +02:00
Hans Leidekker bb2344b711 webservices: Write Action and To headers unless the addressing version is WS_ADDRESSING_VERSION_TRANSPORT.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-20 16:27:05 +02:00
Hans Leidekker 0ea201cbf7 webservices: Set default channel envelope and addressing versions.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-20 16:27:05 +02:00
Hans Leidekker 82306e84f3 webservices: Add support for reading float values.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-20 16:27:05 +02:00
Sebastian Lackner f53b6bfde0 webservices: Remove dead code in read_attribute_value_bin.
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>
2017-07-12 19:51:53 +02:00
Hans Leidekker 35de20a8b3 webservices/tests: Add tests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-12 19:51:53 +02:00