2 * Copyright 2015 Nikolay Sivov for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_WEBSERVICES_H
20 #define __WINE_WEBSERVICES_H
24 #endif /* __cplusplus */
26 typedef struct _WS_ERROR WS_ERROR
;
27 typedef struct _WS_HEAP WS_HEAP
;
28 typedef struct _WS_XML_BUFFER WS_XML_BUFFER
;
29 typedef struct _WS_XML_READER WS_XML_READER
;
30 typedef struct _WS_XML_WRITER WS_XML_WRITER
;
32 struct _WS_STRUCT_DESCRIPTION
;
33 struct _WS_XML_STRING
;
36 WS_ERROR_PROPERTY_STRING_COUNT
,
37 WS_ERROR_PROPERTY_ORIGINAL_ERROR_CODE
,
38 WS_ERROR_PROPERTY_LANGID
39 } WS_ERROR_PROPERTY_ID
;
41 typedef struct _WS_ERROR_PROPERTY
{
42 WS_ERROR_PROPERTY_ID id
;
48 WS_HEAP_PROPERTY_MAX_SIZE
,
49 WS_HEAP_PROPERTY_TRIM_SIZE
,
50 WS_HEAP_PROPERTY_REQUESTED_SIZE
,
51 WS_HEAP_PROPERTY_ACTUAL_SIZE
52 } WS_HEAP_PROPERTY_ID
;
54 typedef struct _WS_HEAP_PROPERTY
{
55 WS_HEAP_PROPERTY_ID id
;
60 typedef ULONG WS_XML_BUFFER_PROPERTY_ID
;
62 typedef struct _WS_XML_BUFFER_PROPERTY
{
63 WS_XML_BUFFER_PROPERTY_ID id
;
66 } WS_XML_BUFFER_PROPERTY
;
69 WS_XML_READER_PROPERTY_MAX_DEPTH
,
70 WS_XML_READER_PROPERTY_ALLOW_FRAGMENT
,
71 WS_XML_READER_PROPERTY_MAX_ATTRIBUTES
,
72 WS_XML_READER_PROPERTY_READ_DECLARATION
,
73 WS_XML_READER_PROPERTY_CHARSET
,
74 WS_XML_READER_PROPERTY_ROW
,
75 WS_XML_READER_PROPERTY_COLUMN
,
76 WS_XML_READER_PROPERTY_UTF8_TRIM_SIZE
,
77 WS_XML_READER_PROPERTY_STREAM_BUFFER_SIZE
,
78 WS_XML_READER_PROPERTY_IN_ATTRIBUTE
,
79 WS_XML_READER_PROPERTY_STREAM_MAX_ROOT_MIME_PART_SIZE
,
80 WS_XML_READER_PROPERTY_STREAM_MAX_MIME_HEADERS_SIZE
,
81 WS_XML_READER_PROPERTY_MAX_MIME_PARTS
,
82 WS_XML_READER_PROPERTY_ALLOW_INVALID_CHARACTER_REFERENCES
,
83 WS_XML_READER_PROPERTY_MAX_NAMESPACES
84 } WS_XML_READER_PROPERTY_ID
;
86 typedef struct _WS_XML_READER_PROPERTY
{
87 WS_XML_READER_PROPERTY_ID id
;
90 } WS_XML_READER_PROPERTY
;
93 WS_XML_WRITER_PROPERTY_MAX_DEPTH
,
94 WS_XML_WRITER_PROPERTY_ALLOW_FRAGMENT
,
95 WS_XML_WRITER_PROPERTY_MAX_ATTRIBUTES
,
96 WS_XML_WRITER_PROPERTY_WRITE_DECLARATION
,
97 WS_XML_WRITER_PROPERTY_INDENT
,
98 WS_XML_WRITER_PROPERTY_BUFFER_TRIM_SIZE
,
99 WS_XML_WRITER_PROPERTY_CHARSET
,
100 WS_XML_WRITER_PROPERTY_BUFFERS
,
101 WS_XML_WRITER_PROPERTY_BUFFER_MAX_SIZE
,
102 WS_XML_WRITER_PROPERTY_BYTES
,
103 WS_XML_WRITER_PROPERTY_IN_ATTRIBUTE
,
104 WS_XML_WRITER_PROPERTY_MAX_MIME_PARTS_BUFFER_SIZE
,
105 WS_XML_WRITER_PROPERTY_INITIAL_BUFFER
,
106 WS_XML_WRITER_PROPERTY_ALLOW_INVALID_CHARACTER_REFERENCES
,
107 WS_XML_WRITER_PROPERTY_MAX_NAMESPACES
,
108 WS_XML_WRITER_PROPERTY_BYTES_WRITTEN
,
109 WS_XML_WRITER_PROPERTY_BYTES_TO_CLOSE
,
110 WS_XML_WRITER_PROPERTY_COMPRESS_EMPTY_ELEMENTS
,
111 WS_XML_WRITER_PROPERTY_EMIT_UNCOMPRESSED_EMPTY_ELEMENTS
112 } WS_XML_WRITER_PROPERTY_ID
;
114 typedef struct _WS_XML_WRITER_PROPERTY
{
115 WS_XML_WRITER_PROPERTY_ID id
;
118 } WS_XML_WRITER_PROPERTY
;
120 typedef struct _WS_BYTES
{
125 typedef struct _WS_BUFFERS
{
131 WS_XML_READER_ENCODING_TYPE_TEXT
= 1,
132 WS_XML_READER_ENCODING_TYPE_BINARY
= 2,
133 WS_XML_READER_ENCODING_TYPE_MTOM
= 3,
134 WS_XML_READER_ENCODING_TYPE_RAW
= 4
135 } WS_XML_READER_ENCODING_TYPE
;
137 typedef struct _WS_XML_READER_ENCODING
{
138 WS_XML_READER_ENCODING_TYPE encodingType
;
139 } WS_XML_READER_ENCODING
;
142 WS_XML_WRITER_ENCODING_TYPE_TEXT
= 1,
143 WS_XML_WRITER_ENCODING_TYPE_BINARY
= 2,
144 WS_XML_WRITER_ENCODING_TYPE_MTOM
= 3,
145 WS_XML_WRITER_ENCODING_TYPE_RAW
= 4
146 } WS_XML_WRITER_ENCODING_TYPE
;
148 typedef struct _WS_XML_WRITER_ENCODING
{
149 WS_XML_WRITER_ENCODING_TYPE encodingType
;
150 } WS_XML_WRITER_ENCODING
;
159 typedef struct _WS_XML_READER_TEXT_ENCODING
{
160 WS_XML_READER_ENCODING encoding
;
162 } WS_XML_READER_TEXT_ENCODING
;
164 typedef struct _WS_XML_WRITER_TEXT_ENCODING
{
165 WS_XML_WRITER_ENCODING encoding
;
167 } WS_XML_WRITER_TEXT_ENCODING
;
170 WS_XML_READER_INPUT_TYPE_BUFFER
= 1,
171 WS_XML_READER_INPUT_TYPE_STREAM
= 2
172 } WS_XML_READER_INPUT_TYPE
;
175 WS_XML_WRITER_OUTPUT_TYPE_BUFFER
= 1,
176 WS_XML_WRITER_OUTPUT_TYPE_STREAM
= 2
177 } WS_XML_WRITER_OUTPUT_TYPE
;
179 typedef struct _WS_XML_READER_INPUT
{
180 WS_XML_READER_INPUT_TYPE inputType
;
181 } WS_XML_READER_INPUT
;
183 typedef struct _WS_XML_WRITER_OUTPUT
{
184 WS_XML_WRITER_OUTPUT_TYPE outputType
;
185 } WS_XML_WRITER_OUTPUT
;
187 typedef struct _WS_XML_READER_BUFFER_INPUT
{
188 WS_XML_READER_INPUT input
;
190 ULONG encodedDataSize
;
191 } WS_XML_READER_BUFFER_INPUT
;
193 typedef struct _WS_XML_WRITER_BUFFER_OUTPUT
{
194 WS_XML_WRITER_OUTPUT output
;
195 } WS_XML_WRITER_BUFFER_OUTPUT
;
202 typedef void (CALLBACK
*WS_ASYNC_CALLBACK
)
203 (HRESULT
, WS_CALLBACK_MODEL
, void *);
205 typedef struct _WS_ASYNC_CONTEXT
{
206 WS_ASYNC_CALLBACK callback
;
210 typedef HRESULT (CALLBACK
*WS_READ_CALLBACK
)
211 (void*, void*, ULONG
, ULONG
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
213 typedef struct _WS_XML_READER_STREAM_INPUT
{
214 WS_XML_READER_INPUT input
;
215 WS_READ_CALLBACK readCallback
;
216 void *readCallbackState
;
217 } WS_XML_READER_STREAM_INPUT
;
219 typedef struct _WS_XML_DICTIONARY
{
221 struct _WS_XML_STRING
*strings
;
226 typedef struct _WS_XML_STRING
{
229 WS_XML_DICTIONARY
*dictionary
;
234 WS_ELEMENT_TYPE_MAPPING
= 1,
235 WS_ATTRIBUTE_TYPE_MAPPING
= 2,
236 WS_ELEMENT_CONTENT_TYPE_MAPPING
= 3,
237 WS_ANY_ELEMENT_TYPE_MAPPING
= 4
269 WS_ENDPOINT_ADDRESS_TYPE
,
275 WS_ANY_ATTRIBUTES_TYPE
279 WS_READ_REQUIRED_VALUE
= 1,
280 WS_READ_REQUIRED_POINTER
= 2,
281 WS_READ_OPTIONAL_POINTER
= 3,
282 WS_READ_NILLABLE_POINTER
= 4,
283 WS_READ_NILLABLE_VALUE
= 5
287 WS_WRITE_REQUIRED_VALUE
= 1,
288 WS_WRITE_REQUIRED_POINTER
= 2,
289 WS_WRITE_NILLABLE_VALUE
= 3,
290 WS_WRITE_NILLABLE_POINTER
= 4
293 typedef struct _WS_BOOL_DESCRIPTION
{
295 } WS_BOOL_DESCRIPTION
;
297 typedef struct _WS_INT8_DESCRIPTION
{
300 } WS_INT8_DESCRIPTION
;
302 typedef struct _WS_INT16_DESCRIPTION
{
305 } WS_INT16_DESCRIPTION
;
307 typedef struct _WS_INT32_DESCRIPTION
{
310 } WS_INT32_DESCRIPTION
;
312 typedef struct _WS_INT64_DESCRIPTION
{
315 } WS_INT64_DESCRIPTION
;
317 typedef struct _WS_UINT8_DESCRIPTION
{
320 } WS_UINT8_DESCRIPTION
;
322 typedef struct _WS_UINT16_DESCRIPTION
{
325 } WS_UINT16_DESCRIPTION
;
327 typedef struct _WS_UINT32_DESCRIPTION
{
330 } WS_UINT32_DESCRIPTION
;
332 typedef struct _WS_UINT64_DESCRIPTION
{
333 unsigned __int64 minValue
;
334 unsigned __int64 maxValue
;
335 } WS_UINT64_DESCRIPTION
;
337 typedef struct _WS_WSZ_DESCRIPTION
{
340 } WS_WSZ_DESCRIPTION
;
343 WS_TYPE_ATTRIBUTE_FIELD_MAPPING
,
344 WS_ATTRIBUTE_FIELD_MAPPING
,
345 WS_ELEMENT_FIELD_MAPPING
,
346 WS_REPEATING_ELEMENT_FIELD_MAPPING
,
347 WS_TEXT_FIELD_MAPPING
,
349 WS_XML_ATTRIBUTE_FIELD_MAPPING
,
350 WS_ELEMENT_CHOICE_FIELD_MAPPING
,
351 WS_REPEATING_ELEMENT_CHOICE_FIELD_MAPPING
,
352 WS_ANY_ELEMENT_FIELD_MAPPING
,
353 WS_REPEATING_ANY_ELEMENT_FIELD_MAPPING
,
354 WS_ANY_CONTENT_FIELD_MAPPING
,
355 WS_ANY_ATTRIBUTES_FIELD_MAPPING
358 typedef struct _WS_DEFAULT_VALUE
{
363 typedef struct _WS_ITEM_RANGE
{
370 WS_FIELD_POINTER
= 0x1,
371 WS_FIELD_OPTIONAL
= 0x2,
372 WS_FIELD_NILLABLE
= 0x4,
373 WS_FIELD_NILLABLE_ITEM
= 0x8,
374 WS_FIELD_OTHER_NAMESPACE
= 0x10
377 typedef struct _WS_FIELD_DESCRIPTION
{
378 WS_FIELD_MAPPING mapping
;
379 WS_XML_STRING
*localName
;
382 void *typeDescription
;
385 WS_DEFAULT_VALUE
*defaultValue
;
387 WS_XML_STRING
*itemLocalName
;
388 WS_XML_STRING
*itemNs
;
389 WS_ITEM_RANGE
*itemRange
;
390 } WS_FIELD_DESCRIPTION
;
394 WS_STRUCT_ABSTRACT
= 0x1,
395 WS_STRUCT_IGNORE_TRAILING_ELEMENT_CONTENT
= 0x2,
396 WS_STRUCT_IGNORE_UNHANDLED_ATTRIBUTES
= 0x4
399 typedef struct _WS_STRUCT_DESCRIPTION
{
402 WS_FIELD_DESCRIPTION
**fields
;
404 WS_XML_STRING
*typeLocalName
;
405 WS_XML_STRING
*typeNs
;
406 struct _WS_STRUCT_DESCRIPTION
*parentType
;
407 struct _WS_STRUCT_DESCRIPTION
**subTypes
;
410 } WS_STRUCT_DESCRIPTION
;
412 typedef struct _WS_ATTRIBUTE_DESCRIPTION
{
413 WS_XML_STRING
*attributeLocalName
;
414 WS_XML_STRING
*attributeNs
;
416 void *typeDescription
;
417 } WS_ATTRIBUTE_DESCRIPTION
;
419 typedef struct _WS_ELEMENT_DESCRIPTION
{
420 WS_XML_STRING
*elementLocalName
;
421 WS_XML_STRING
*elementNs
;
423 void *typeDescription
;
424 } WS_ELEMENT_DESCRIPTION
;
426 typedef struct _WS_STRING
{
432 WS_XML_NODE_TYPE_ELEMENT
= 1,
433 WS_XML_NODE_TYPE_TEXT
= 2,
434 WS_XML_NODE_TYPE_END_ELEMENT
= 3,
435 WS_XML_NODE_TYPE_COMMENT
= 4,
436 WS_XML_NODE_TYPE_CDATA
= 6,
437 WS_XML_NODE_TYPE_END_CDATA
= 7,
438 WS_XML_NODE_TYPE_EOF
= 8,
439 WS_XML_NODE_TYPE_BOF
= 9
442 typedef struct _WS_XML_NODE
{
443 WS_XML_NODE_TYPE nodeType
;
447 WS_MOVE_TO_ROOT_ELEMENT
,
448 WS_MOVE_TO_NEXT_ELEMENT
,
449 WS_MOVE_TO_PREVIOUS_ELEMENT
,
450 WS_MOVE_TO_CHILD_ELEMENT
,
451 WS_MOVE_TO_END_ELEMENT
,
452 WS_MOVE_TO_PARENT_ELEMENT
,
453 WS_MOVE_TO_NEXT_NODE
,
454 WS_MOVE_TO_PREVIOUS_NODE
,
455 WS_MOVE_TO_FIRST_NODE
,
458 WS_MOVE_TO_CHILD_NODE
462 WS_XML_TEXT_TYPE_UTF8
= 1,
463 WS_XML_TEXT_TYPE_UTF16
= 2,
464 WS_XML_TEXT_TYPE_BASE64
= 3,
465 WS_XML_TEXT_TYPE_BOOL
= 4,
466 WS_XML_TEXT_TYPE_INT32
= 5,
467 WS_XML_TEXT_TYPE_INT64
= 6,
468 WS_XML_TEXT_TYPE_UINT64
= 7,
469 WS_XML_TEXT_TYPE_FLOAT
= 8,
470 WS_XML_TEXT_TYPE_DOUBLE
= 9,
471 WS_XML_TEXT_TYPE_DECIMAL
= 10,
472 WS_XML_TEXT_TYPE_GUID
= 11,
473 WS_XML_TEXT_TYPE_UNIQUE_ID
= 12,
474 WS_XML_TEXT_TYPE_DATETIME
= 13,
475 WS_XML_TEXT_TYPE_TIMESPAN
= 14,
476 WS_XML_TEXT_TYPE_QNAME
= 15,
477 WS_XML_TEXT_TYPE_LIST
= 16
480 typedef struct _WS_XML_TEXT
{
481 WS_XML_TEXT_TYPE textType
;
484 typedef struct _WS_XML_UTF8_TEXT
{
496 WS_UINT16_VALUE_TYPE
,
497 WS_UINT32_VALUE_TYPE
,
498 WS_UINT64_VALUE_TYPE
,
500 WS_DOUBLE_VALUE_TYPE
,
501 WS_DECIMAL_VALUE_TYPE
,
502 WS_DATETIME_VALUE_TYPE
,
503 WS_TIMESPAN_VALUE_TYPE
,
505 WS_DURATION_VALUE_TYPE
508 typedef struct _WS_XML_ATTRIBUTE
{
511 WS_XML_STRING
*prefix
;
512 WS_XML_STRING
*localName
;
517 typedef struct _WS_XML_ELEMENT_NODE
{
519 WS_XML_STRING
*prefix
;
520 WS_XML_STRING
*localName
;
522 ULONG attributeCount
;
523 WS_XML_ATTRIBUTE
**attributes
;
525 } WS_XML_ELEMENT_NODE
;
527 typedef struct _WS_XML_TEXT_NODE
{
532 typedef struct _WS_XML_COMMENT_NODE
{
535 } WS_XML_COMMENT_NODE
;
537 typedef struct _WS_XML_NODE_POSITION
{
538 WS_XML_BUFFER
*buffer
;
540 } WS_XML_NODE_POSITION
;
542 HRESULT WINAPI
WsAlloc(WS_HEAP
*, SIZE_T
, void**, WS_ERROR
*);
543 HRESULT WINAPI
WsCreateError(const WS_ERROR_PROPERTY
*, ULONG
, WS_ERROR
**);
544 HRESULT WINAPI
WsCreateHeap(SIZE_T
, SIZE_T
, const WS_HEAP_PROPERTY
*, ULONG
, WS_HEAP
**, WS_ERROR
*);
545 HRESULT WINAPI
WsCreateReader(const WS_XML_READER_PROPERTY
*, ULONG
, WS_XML_READER
**, WS_ERROR
*);
546 HRESULT WINAPI
WsCreateWriter(const WS_XML_WRITER_PROPERTY
*, ULONG
, WS_XML_WRITER
**, WS_ERROR
*);
547 HRESULT WINAPI
WsCreateXmlBuffer(WS_HEAP
*, const WS_XML_BUFFER_PROPERTY
*, ULONG
, WS_XML_BUFFER
**,
549 HRESULT WINAPI
WsFillReader(WS_XML_READER
*, ULONG
, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
550 HRESULT WINAPI
WsFindAttribute(WS_XML_READER
*, const WS_XML_STRING
*, const WS_XML_STRING
*, BOOL
,
552 void WINAPI
WsFreeError(WS_ERROR
*);
553 void WINAPI
WsFreeHeap(WS_HEAP
*);
554 void WINAPI
WsFreeReader(WS_XML_READER
*);
555 void WINAPI
WsFreeWriter(WS_XML_WRITER
*);
556 HRESULT WINAPI
WsGetErrorProperty(WS_ERROR
*, WS_ERROR_PROPERTY_ID
, void*, ULONG
);
557 HRESULT WINAPI
WsGetErrorString(WS_ERROR
*, ULONG
, WS_STRING
*);
558 HRESULT WINAPI
WsGetHeapProperty(WS_HEAP
*, WS_HEAP_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
559 HRESULT WINAPI
WsGetNamespaceFromPrefix(WS_XML_READER
*, const WS_XML_STRING
*, BOOL
,
560 const WS_XML_STRING
**, WS_ERROR
*);
561 HRESULT WINAPI
WsGetPrefixFromNamespace(WS_XML_WRITER
*, const WS_XML_STRING
*, BOOL
,
562 const WS_XML_STRING
**, WS_ERROR
*);
563 HRESULT WINAPI
WsGetReaderNode(WS_XML_READER
*, const WS_XML_NODE
**, WS_ERROR
*);
564 HRESULT WINAPI
WsGetReaderPosition(WS_XML_READER
*, WS_XML_NODE_POSITION
*, WS_ERROR
*);
565 HRESULT WINAPI
WsGetReaderProperty(WS_XML_READER
*, WS_XML_READER_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
566 HRESULT WINAPI
WsGetWriterProperty(WS_XML_WRITER
*, WS_XML_WRITER_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
567 HRESULT WINAPI
WsGetXmlAttribute(WS_XML_READER
*, const WS_XML_STRING
*, WS_HEAP
*, WCHAR
**,
569 HRESULT WINAPI
WsMoveReader(WS_XML_READER
*, WS_MOVE_TO
, BOOL
*, WS_ERROR
*);
570 HRESULT WINAPI
WsMoveWriter(WS_XML_WRITER
*, WS_MOVE_TO
, BOOL
*, WS_ERROR
*);
571 HRESULT WINAPI
WsReadAttribute(WS_XML_READER
*, const WS_ATTRIBUTE_DESCRIPTION
*, WS_READ_OPTION
,
572 WS_HEAP
*, void*, ULONG
, WS_ERROR
*);
573 HRESULT WINAPI
WsReadEndAttribute(WS_XML_READER
*, WS_ERROR
*);
574 HRESULT WINAPI
WsReadEndElement(WS_XML_READER
*, WS_ERROR
*);
575 HRESULT WINAPI
WsReadNode(WS_XML_READER
*, WS_ERROR
*);
576 HRESULT WINAPI
WsReadStartAttribute(WS_XML_READER
*, ULONG
, WS_ERROR
*);
577 HRESULT WINAPI
WsReadStartElement(WS_XML_READER
*, WS_ERROR
*);
578 HRESULT WINAPI
WsReadToStartElement(WS_XML_READER
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
580 HRESULT WINAPI
WsReadType(WS_XML_READER
*, WS_TYPE_MAPPING
, WS_TYPE
, const void*, WS_READ_OPTION
,
581 WS_HEAP
*, void*, ULONG
, WS_ERROR
*);
582 HRESULT WINAPI
WsSetErrorProperty(WS_ERROR
*, WS_ERROR_PROPERTY_ID
, const void*, ULONG
);
583 HRESULT WINAPI
WsSetInput(WS_XML_READER
*, const WS_XML_READER_ENCODING
*, const WS_XML_READER_INPUT
*,
584 const WS_XML_READER_PROPERTY
*, ULONG
, WS_ERROR
*);
585 HRESULT WINAPI
WsSetInputToBuffer(WS_XML_READER
*, WS_XML_BUFFER
*, const WS_XML_READER_PROPERTY
*,
587 HRESULT WINAPI
WsSetOutput(WS_XML_WRITER
*, const WS_XML_WRITER_ENCODING
*, const WS_XML_WRITER_OUTPUT
*,
588 const WS_XML_WRITER_PROPERTY
*, ULONG
, WS_ERROR
*);
589 HRESULT WINAPI
WsSetOutputToBuffer(WS_XML_WRITER
*, WS_XML_BUFFER
*, const WS_XML_WRITER_PROPERTY
*,
591 HRESULT WINAPI
WsSkipNode(WS_XML_READER
*, WS_ERROR
*);
592 HRESULT WINAPI
WsWriteAttribute(WS_XML_WRITER
*, const WS_ATTRIBUTE_DESCRIPTION
*, WS_WRITE_OPTION
,
593 const void*, ULONG
, WS_ERROR
*);
594 HRESULT WINAPI
WsWriteElement(WS_XML_WRITER
*, const WS_ELEMENT_DESCRIPTION
*, WS_WRITE_OPTION
,
595 const void*, ULONG
, WS_ERROR
*);
596 HRESULT WINAPI
WsWriteEndAttribute(WS_XML_WRITER
*, WS_ERROR
*);
597 HRESULT WINAPI
WsWriteEndCData(WS_XML_WRITER
*, WS_ERROR
*);
598 HRESULT WINAPI
WsWriteEndElement(WS_XML_WRITER
*, WS_ERROR
*);
599 HRESULT WINAPI
WsWriteEndStartElement(WS_XML_WRITER
*, WS_ERROR
*);
600 HRESULT WINAPI
WsWriteStartAttribute(WS_XML_WRITER
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
601 const WS_XML_STRING
*, BOOL
, WS_ERROR
*);
602 HRESULT WINAPI
WsWriteStartCData(WS_XML_WRITER
*, WS_ERROR
*);
603 HRESULT WINAPI
WsWriteStartElement(WS_XML_WRITER
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
604 const WS_XML_STRING
*, WS_ERROR
*);
605 HRESULT WINAPI
WsWriteText(WS_XML_WRITER
*, const WS_XML_TEXT
*, WS_ERROR
*);
606 HRESULT WINAPI
WsWriteType(WS_XML_WRITER
*, WS_TYPE_MAPPING
, WS_TYPE
, const void*, WS_WRITE_OPTION
,
607 const void*, ULONG
, WS_ERROR
*);
608 HRESULT WINAPI
WsWriteValue(WS_XML_WRITER
*, WS_VALUE_TYPE
, const void*, ULONG
, WS_ERROR
*);
609 HRESULT WINAPI
WsWriteXmlBuffer(WS_XML_WRITER
*, WS_XML_BUFFER
*, WS_ERROR
*);
610 HRESULT WINAPI
WsWriteXmlBufferToBytes(WS_XML_WRITER
*, WS_XML_BUFFER
*, const WS_XML_WRITER_ENCODING
*,
611 const WS_XML_WRITER_PROPERTY
*, ULONG
, WS_HEAP
*, void**,
613 HRESULT WINAPI
WsWriteXmlnsAttribute(WS_XML_WRITER
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
615 HRESULT WINAPI
WsXmlStringEquals(const WS_XML_STRING
*, const WS_XML_STRING
*, WS_ERROR
*);
617 #define WS_S_ASYNC 0x003d0000
618 #define WS_S_END 0x003d0001
619 #define WS_E_INVALID_FORMAT 0x803d0000
620 #define WS_E_OBJECT_FAULTED 0x803d0001
621 #define WS_E_NUMERIC_OVERFLOW 0x803d0002
622 #define WS_E_INVALID_OPERATION 0x803d0003
623 #define WS_E_OPERATION_ABORTED 0x803d0004
624 #define WS_E_ENDPOINT_ACCESS_DENIED 0x803d0005
625 #define WS_E_OPERATION_TIMED_OUT 0x803d0006
626 #define WS_E_OPERATION_ABANDONED 0x803d0007
627 #define WS_E_QUOTA_EXCEEDED 0x803d0008
628 #define WS_E_NO_TRANSLATION_AVAILABLE 0x803d0009
629 #define WS_E_SECURITY_VERIFICATION_FAILURE 0x803d000a
630 #define WS_E_ADDRESS_IN_USE 0x803d000b
631 #define WS_E_ADDRESS_NOT_AVAILABLE 0x803d000c
632 #define WS_E_ENDPOINT_NOT_FOUND 0x803d000d
633 #define WS_E_ENDPOINT_NOT_AVAILABLE 0x803d000e
634 #define WS_E_ENDPOINT_FAILURE 0x803d000f
635 #define WS_E_ENDPOINT_UNREACHABLE 0x803d0010
636 #define WS_E_ENDPOINT_ACTION_NOT_SUPPORTED 0x803d0011
637 #define WS_E_ENDPOINT_TOO_BUSY 0x803d0012
638 #define WS_E_ENDPOINT_FAULT_RECEIVED 0x803d0013
639 #define WS_E_ENDPOINT_DISCONNECTED 0x803d0014
640 #define WS_E_PROXY_FAILURE 0x803d0015
641 #define WS_E_PROXY_ACCESS_DENIED 0x803d0016
642 #define WS_E_NOT_SUPPORTED 0x803d0017
643 #define WS_E_PROXY_REQUIRES_BASIC_AUTH 0x803d0018
644 #define WS_E_PROXY_REQUIRES_DIGEST_AUTH 0x803d0019
645 #define WS_E_PROXY_REQUIRES_NTLM_AUTH 0x803d001a
646 #define WS_E_PROXY_REQUIRES_NEGOTIATE_AUTH 0x803d001b
647 #define WS_E_SERVER_REQUIRES_BASIC_AUTH 0x803d001c
648 #define WS_E_SERVER_REQUIRES_DIGEST_AUTH 0x803d001d
649 #define WS_E_SERVER_REQUIRES_NTLM_AUTH 0x803d001e
650 #define WS_E_SERVER_REQUIRES_NEGOTIATE_AUTH 0x803d001f
651 #define WS_E_INVALID_ENDPOINT_URL 0x803d0020
652 #define WS_E_OTHER 0x803d0021
653 #define WS_E_SECURITY_TOKEN_EXPIRED 0x803d0022
654 #define WS_E_SECURITY_SYSTEM_FAILURE 0x803d0023
658 #endif /* __cplusplus */
660 #endif /* __WINE_WEBSERVICES_H */