Commit Graph

96 Commits

Author SHA1 Message Date
Hans Leidekker bf74c6a5dd webservices: Add support for element and text field mappings in the writer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 23:31:07 +09:00
Hans Leidekker 0fd7bb5389 webservices: Reject field mappings without name or namespace.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 23:31:05 +09:00
Hans Leidekker 7a6595bf51 webservices: Add support for attribute field mappings in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 23:31:02 +09:00
Hans Leidekker d5255f51b2 webservices: Move the reader to EOF at end of data in WsReadEndElement.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 23:31:00 +09:00
Hans Leidekker b7178446fc webservices: Don't read past the closing bracket in read_element.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 23:30:57 +09:00
Michael Stefaniuc 1496777d5f webservices: Print the debug string and not the pointer to it.
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-02-25 21:59:41 +09:00
Hans Leidekker 3609e3f47f webservices: Implement WsGetNamespaceFromPrefix.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 22:39:38 +09:00
Hans Leidekker e0ff2f930d webservices: Add support for namespace attributes in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 22:39:26 +09:00
Hans Leidekker bc131a2653 webservices: Set bytes pointer to NULL if length is zero in alloc_xml_string and alloc_utf8_text.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 22:39:21 +09:00
Hans Leidekker 2a4063cd86 webservices: Implement WsGetPrefixFromNamespace.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 22:39:17 +09:00
Hans Leidekker 21d9e5181d webservices: Implement WsWriteXmlnsAttribute.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 22:39:04 +09:00
Hans Leidekker 2d53f13118 webservices: Add support for namespace attributes in the writer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 22:38:46 +09:00
André Hentschel 68b92d052a webservices/tests: Use todo_wine_if() in tests.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-23 20:22:22 +09:00
Hans Leidekker fbc08085da webservices/tests: Add tests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:47 +09:00
Hans Leidekker 57a7870649 webservices: Implement WS_MOVE_TO_PARENT_ELEMENT in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:47 +09:00
Hans Leidekker 88e53782e8 webservices: Implement WS_MOVE_TO_END_ELEMENT in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:46 +09:00
Hans Leidekker 5c4a061f39 webservices: Implement WS_MOVE_TO_CHILD_ELEMENT in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:46 +09:00
Hans Leidekker 36df4893bf webservices: Implement WS_MOVE_TO_PREVIOUS_ELEMENT in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:46 +09:00
Hans Leidekker 9b58a3993f webservices: Implement WS_MOVE_TO_NEXT_ELEMENT in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:46 +09:00
Hans Leidekker d2ecd8692a webservices: Implement WS_MOVE_TO_ROOT_ELEMENT in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:46 +09:00
Hans Leidekker fe65b87dac webservices: Insert an end element node for self-closing tags in the reader.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:46 +09:00
Hans Leidekker 6449cb3b67 webservices: Reset the attribute index in read_element.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:46 +09:00
Hans Leidekker 46393a3f86 webservices: Implement WsFindAttribute.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 01:26:45 +09:00
Hans Leidekker db591a0583 webservices: Implement WsWriteStartCData and WsWriteEndCData.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-03 23:49:29 +09:00
Hans Leidekker 48975081b8 webservices: Parse CDATA nodes.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-03 23:49:24 +09:00
Hans Leidekker 50797a803d webservices: Support more writer states in WsWriteText.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-03 23:49:22 +09:00
Hans Leidekker b960e6f81b webservices: Don't validate reader state in read_endelement.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-03 23:49:19 +09:00
Hans Leidekker 417ac65ef6 webservices: Implement WsReadEndAttribute.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-03 23:49:17 +09:00
Hans Leidekker 9fb780ec08 webservices: Add support for structure types in WsReadType.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:31:30 +09:00
Hans Leidekker bd4361cb0f webservices: Implement WsReadStartAttribute.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:31:27 +09:00
Hans Leidekker 5eed03cb28 webservices: Implement WsWriteAttribute.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:31:18 +09:00
Hans Leidekker 0b57ba1904 webservices: Implement WsWriteValue.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:31:12 +09:00
Hans Leidekker 2f37267312 webservices: Implement WsWriteElement.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:31:02 +09:00
Hans Leidekker 98d19212e7 webservices: Add support for structure types in WsWriteType.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 21:30:54 +09:00
Hans Leidekker 8676f7bae0 webservices/tests: Add tests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:19 +09:00
Hans Leidekker 2563356bd6 webservices: Implement WsWriteType for a number of basic types.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:19 +09:00
Hans Leidekker 6086ad0fe3 webservices: Reject end elements without a parent in the writer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:18 +09:00
Hans Leidekker ed33639561 webservices: Implement WsWriteXmlBufferToBytes.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:18 +09:00
Hans Leidekker 32e20cbf32 webservices: Implement WsWriteXmlBuffer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:18 +09:00
Hans Leidekker 44d850c259 webservices: Attributes inherit the prefix from their element.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:18 +09:00
Hans Leidekker 4f0b912236 webservices: Simplify handling of quotes in write_attribute.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-22 01:26:18 +09:00
Hans Leidekker a443318d18 webservices/tests: Add more tests for WsReadEndElement.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 23:13:48 +09:00
Hans Leidekker d641bc080b webservices: Parse element names.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 23:13:45 +09:00
Hans Leidekker 477b76497f webservices: Parse attribute names.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 23:13:43 +09:00
Hans Leidekker adcdb4c2bd webservices: Avoid some casts.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 23:13:40 +09:00
Alistair Leslie-Hughes 7aefdc2f18 webservices: Add missing break.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-04 21:56:19 +09:00
Hans Leidekker 038cb1183a webservices/tests: Add more tests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:32 +09:00
Hans Leidekker 83e4e13571 webservices: Implement WsWriteText.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:31 +09:00
Hans Leidekker 112e1af5f1 webservices: Implement WsWriteEndAttribute.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:31 +09:00
Hans Leidekker 919b1b5fdc webservices: Implement WsWriteStartAttribute.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:31 +09:00