imm32: Use wine_dbgstr_rect() and wine_dbgstr_point() in traces.
[wine.git] / include / webservices.h
bloba55072fb5d8398bc410d6f3f160bc97ec69918c0
1 /*
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
22 #ifdef __cplusplus
23 extern "C" {
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;
31 typedef struct _WS_PROXY_PROPERTY WS_PROXY_PROPERTY;
32 typedef struct _WS_SECURITY_DESCRIPTION WS_SECURITY_DESCRIPTION;
33 typedef struct _WS_CHANNEL_PROPERTY WS_CHANNEL_PROPERTY;
34 typedef struct _WS_SERVICE_PROXY WS_SERVICE_PROXY;
35 typedef struct _WS_SECURITY_BINDING_PROPERTY WS_SECURITY_BINDING_PROPERTY;
36 typedef struct _WS_SECURITY_PROPERTY WS_SECURITY_PROPERTY;
37 typedef struct _WS_SECURITY_PROPERTIES WS_SECURITY_PROPERTIES;
38 typedef struct _WS_SECURITY_BINDING WS_SECURITY_BINDING;
39 typedef struct _WS_CHANNEL WS_CHANNEL;
40 typedef struct _WS_MESSAGE_PROPERTY WS_MESSAGE_PROPERTY;
41 typedef struct _WS_MESSAGE_PROPERTIES WS_MESSAGE_PROPERTIES;
42 typedef struct _WS_HTTP_BINDING_TEMPLATE WS_HTTP_BINDING_TEMPLATE;
43 typedef struct _WS_HTTP_SSL_BINDING_TEMPLATE WS_HTTP_SSL_BINDING_TEMPLATE;
44 typedef struct _WS_CHANNEL_PROPERTIES WS_CHANNEL_PROPERTIES;
45 typedef struct _WS_SSL_TRANSPORT_SECURITY_BINDING_TEMPLATE WS_SSL_TRANSPORT_SECURITY_BINDING_TEMPLATE;
46 typedef struct _WS_SECURITY_BINDING_PROPERTIES WS_SECURITY_BINDING_PROPERTIES;
47 typedef struct _WS_CERT_CREDENTIAL WS_CERT_CREDENTIAL;
48 typedef struct _WS_ENDPOINT_ADDRESS WS_ENDPOINT_ADDRESS;
49 typedef struct _WS_ENDPOINT_IDENTITY WS_ENDPOINT_IDENTITY;
50 typedef struct _WS_ENUM_DESCRIPTION WS_ENUM_DESCRIPTION;
51 typedef struct _WS_ENUM_VALUE WS_ENUM_VALUE;
52 typedef struct _WS_HTTP_POLICY_DESCRIPTION WS_HTTP_POLICY_DESCRIPTION;
53 typedef struct _WS_MESSAGE WS_MESSAGE;
54 typedef struct _WS_MESSAGE_DESCRIPTION WS_MESSAGE_DESCRIPTION;
55 typedef struct _WS_OPERATION_DESCRIPTION WS_OPERATION_DESCRIPTION;
56 typedef struct _WS_PARAMETER_DESCRIPTION WS_PARAMETER_DESCRIPTION;
57 typedef struct _WS_OPERATION_CONTEXT WS_OPERATION_CONTEXT;
58 typedef struct _WS_CALL_PROPERTY WS_CALL_PROPERTY;
59 typedef struct _WS_DOUBLE_DESCRIPTION WS_DOUBLE_DESCRIPTION;
60 typedef struct _WS_DATETIME WS_DATETIME;
61 typedef struct _WS_DATETIME_DESCRIPTION WS_DATETIME_DESCRIPTION;
63 struct _WS_STRUCT_DESCRIPTION;
64 struct _WS_XML_STRING;
66 typedef enum {
67 WS_ERROR_PROPERTY_STRING_COUNT,
68 WS_ERROR_PROPERTY_ORIGINAL_ERROR_CODE,
69 WS_ERROR_PROPERTY_LANGID
70 } WS_ERROR_PROPERTY_ID;
72 typedef struct _WS_ERROR_PROPERTY {
73 WS_ERROR_PROPERTY_ID id;
74 void *value;
75 ULONG valueSize;
76 } WS_ERROR_PROPERTY;
78 typedef enum {
79 WS_HEAP_PROPERTY_MAX_SIZE,
80 WS_HEAP_PROPERTY_TRIM_SIZE,
81 WS_HEAP_PROPERTY_REQUESTED_SIZE,
82 WS_HEAP_PROPERTY_ACTUAL_SIZE
83 } WS_HEAP_PROPERTY_ID;
85 typedef struct _WS_HEAP_PROPERTY {
86 WS_HEAP_PROPERTY_ID id;
87 void *value;
88 ULONG valueSize;
89 } WS_HEAP_PROPERTY;
91 typedef ULONG WS_XML_BUFFER_PROPERTY_ID;
93 typedef struct _WS_XML_BUFFER_PROPERTY {
94 WS_XML_BUFFER_PROPERTY_ID id;
95 void *value;
96 ULONG valueSize;
97 } WS_XML_BUFFER_PROPERTY;
99 typedef enum {
100 WS_XML_READER_PROPERTY_MAX_DEPTH,
101 WS_XML_READER_PROPERTY_ALLOW_FRAGMENT,
102 WS_XML_READER_PROPERTY_MAX_ATTRIBUTES,
103 WS_XML_READER_PROPERTY_READ_DECLARATION,
104 WS_XML_READER_PROPERTY_CHARSET,
105 WS_XML_READER_PROPERTY_ROW,
106 WS_XML_READER_PROPERTY_COLUMN,
107 WS_XML_READER_PROPERTY_UTF8_TRIM_SIZE,
108 WS_XML_READER_PROPERTY_STREAM_BUFFER_SIZE,
109 WS_XML_READER_PROPERTY_IN_ATTRIBUTE,
110 WS_XML_READER_PROPERTY_STREAM_MAX_ROOT_MIME_PART_SIZE,
111 WS_XML_READER_PROPERTY_STREAM_MAX_MIME_HEADERS_SIZE,
112 WS_XML_READER_PROPERTY_MAX_MIME_PARTS,
113 WS_XML_READER_PROPERTY_ALLOW_INVALID_CHARACTER_REFERENCES,
114 WS_XML_READER_PROPERTY_MAX_NAMESPACES
115 } WS_XML_READER_PROPERTY_ID;
117 typedef struct _WS_XML_READER_PROPERTY {
118 WS_XML_READER_PROPERTY_ID id;
119 void *value;
120 ULONG valueSize;
121 } WS_XML_READER_PROPERTY;
123 typedef enum {
124 WS_XML_WRITER_PROPERTY_MAX_DEPTH,
125 WS_XML_WRITER_PROPERTY_ALLOW_FRAGMENT,
126 WS_XML_WRITER_PROPERTY_MAX_ATTRIBUTES,
127 WS_XML_WRITER_PROPERTY_WRITE_DECLARATION,
128 WS_XML_WRITER_PROPERTY_INDENT,
129 WS_XML_WRITER_PROPERTY_BUFFER_TRIM_SIZE,
130 WS_XML_WRITER_PROPERTY_CHARSET,
131 WS_XML_WRITER_PROPERTY_BUFFERS,
132 WS_XML_WRITER_PROPERTY_BUFFER_MAX_SIZE,
133 WS_XML_WRITER_PROPERTY_BYTES,
134 WS_XML_WRITER_PROPERTY_IN_ATTRIBUTE,
135 WS_XML_WRITER_PROPERTY_MAX_MIME_PARTS_BUFFER_SIZE,
136 WS_XML_WRITER_PROPERTY_INITIAL_BUFFER,
137 WS_XML_WRITER_PROPERTY_ALLOW_INVALID_CHARACTER_REFERENCES,
138 WS_XML_WRITER_PROPERTY_MAX_NAMESPACES,
139 WS_XML_WRITER_PROPERTY_BYTES_WRITTEN,
140 WS_XML_WRITER_PROPERTY_BYTES_TO_CLOSE,
141 WS_XML_WRITER_PROPERTY_COMPRESS_EMPTY_ELEMENTS,
142 WS_XML_WRITER_PROPERTY_EMIT_UNCOMPRESSED_EMPTY_ELEMENTS
143 } WS_XML_WRITER_PROPERTY_ID;
145 typedef struct _WS_XML_WRITER_PROPERTY {
146 WS_XML_WRITER_PROPERTY_ID id;
147 void *value;
148 ULONG valueSize;
149 } WS_XML_WRITER_PROPERTY;
151 typedef struct _WS_BYTES {
152 ULONG length;
153 BYTE *bytes;
154 } WS_BYTES;
156 typedef struct _WS_BUFFERS {
157 ULONG bufferCount;
158 WS_BYTES *buffers;
159 } WS_BUFFERS;
161 typedef enum {
162 WS_XML_READER_ENCODING_TYPE_TEXT = 1,
163 WS_XML_READER_ENCODING_TYPE_BINARY = 2,
164 WS_XML_READER_ENCODING_TYPE_MTOM = 3,
165 WS_XML_READER_ENCODING_TYPE_RAW = 4
166 } WS_XML_READER_ENCODING_TYPE;
168 typedef struct _WS_XML_READER_ENCODING {
169 WS_XML_READER_ENCODING_TYPE encodingType;
170 } WS_XML_READER_ENCODING;
172 typedef enum {
173 WS_XML_WRITER_ENCODING_TYPE_TEXT = 1,
174 WS_XML_WRITER_ENCODING_TYPE_BINARY = 2,
175 WS_XML_WRITER_ENCODING_TYPE_MTOM = 3,
176 WS_XML_WRITER_ENCODING_TYPE_RAW = 4
177 } WS_XML_WRITER_ENCODING_TYPE;
179 typedef struct _WS_XML_WRITER_ENCODING {
180 WS_XML_WRITER_ENCODING_TYPE encodingType;
181 } WS_XML_WRITER_ENCODING;
183 typedef enum {
184 WS_CHARSET_AUTO,
185 WS_CHARSET_UTF8,
186 WS_CHARSET_UTF16LE,
187 WS_CHARSET_UTF16BE
188 } WS_CHARSET;
190 typedef struct _WS_XML_READER_TEXT_ENCODING {
191 WS_XML_READER_ENCODING encoding;
192 WS_CHARSET charSet;
193 } WS_XML_READER_TEXT_ENCODING;
195 typedef struct _WS_XML_WRITER_TEXT_ENCODING {
196 WS_XML_WRITER_ENCODING encoding;
197 WS_CHARSET charSet;
198 } WS_XML_WRITER_TEXT_ENCODING;
200 typedef enum {
201 WS_XML_READER_INPUT_TYPE_BUFFER = 1,
202 WS_XML_READER_INPUT_TYPE_STREAM = 2
203 } WS_XML_READER_INPUT_TYPE;
205 typedef enum {
206 WS_XML_WRITER_OUTPUT_TYPE_BUFFER = 1,
207 WS_XML_WRITER_OUTPUT_TYPE_STREAM = 2
208 } WS_XML_WRITER_OUTPUT_TYPE;
210 typedef struct _WS_XML_READER_INPUT {
211 WS_XML_READER_INPUT_TYPE inputType;
212 } WS_XML_READER_INPUT;
214 typedef struct _WS_XML_WRITER_OUTPUT {
215 WS_XML_WRITER_OUTPUT_TYPE outputType;
216 } WS_XML_WRITER_OUTPUT;
218 typedef struct _WS_XML_READER_BUFFER_INPUT {
219 WS_XML_READER_INPUT input;
220 void *encodedData;
221 ULONG encodedDataSize;
222 } WS_XML_READER_BUFFER_INPUT;
224 typedef struct _WS_XML_WRITER_BUFFER_OUTPUT {
225 WS_XML_WRITER_OUTPUT output;
226 } WS_XML_WRITER_BUFFER_OUTPUT;
228 typedef enum {
229 WS_SHORT_CALLBACK,
230 WS_LONG_CALLBACK
231 } WS_CALLBACK_MODEL;
233 typedef void (CALLBACK *WS_ASYNC_CALLBACK)
234 (HRESULT, WS_CALLBACK_MODEL, void *);
236 typedef struct _WS_ASYNC_CONTEXT {
237 WS_ASYNC_CALLBACK callback;
238 void *callbackState;
239 } WS_ASYNC_CONTEXT;
241 typedef HRESULT (CALLBACK *WS_READ_CALLBACK)
242 (void*, void*, ULONG, ULONG*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
244 typedef struct _WS_XML_READER_STREAM_INPUT {
245 WS_XML_READER_INPUT input;
246 WS_READ_CALLBACK readCallback;
247 void *readCallbackState;
248 } WS_XML_READER_STREAM_INPUT;
250 typedef struct _WS_XML_DICTIONARY {
251 GUID guid;
252 struct _WS_XML_STRING *strings;
253 ULONG stringCount;
254 BOOL isConst;
255 } WS_XML_DICTIONARY;
257 typedef struct _WS_XML_STRING {
258 ULONG length;
259 BYTE *bytes;
260 WS_XML_DICTIONARY *dictionary;
261 ULONG id;
262 } WS_XML_STRING;
264 typedef enum {
265 WS_ELEMENT_TYPE_MAPPING = 1,
266 WS_ATTRIBUTE_TYPE_MAPPING = 2,
267 WS_ELEMENT_CONTENT_TYPE_MAPPING = 3,
268 WS_ANY_ELEMENT_TYPE_MAPPING = 4
269 } WS_TYPE_MAPPING;
271 typedef enum {
272 WS_BOOL_TYPE,
273 WS_INT8_TYPE,
274 WS_INT16_TYPE,
275 WS_INT32_TYPE,
276 WS_INT64_TYPE,
277 WS_UINT8_TYPE,
278 WS_UINT16_TYPE,
279 WS_UINT32_TYPE,
280 WS_UINT64_TYPE,
281 WS_FLOAT_TYPE,
282 WS_DOUBLE_TYPE,
283 WS_DECIMAL_TYPE,
284 WS_DATETIME_TYPE,
285 WS_TIMESPAN_TYPE,
286 WS_GUID_TYPE,
287 WS_UNIQUE_ID_TYPE,
288 WS_STRING_TYPE,
289 WS_WSZ_TYPE,
290 WS_BYTES_TYPE,
291 WS_XML_STRING_TYPE,
292 WS_XML_QNAME_TYPE,
293 WS_XML_BUFFER_TYPE,
294 WS_CHAR_ARRAY_TYPE,
295 WS_UTF8_ARRAY_TYPE,
296 WS_BYTE_ARRAY_TYPE,
297 WS_DESCRIPTION_TYPE,
298 WS_STRUCT_TYPE,
299 WS_CUSTOM_TYPE,
300 WS_ENDPOINT_ADDRESS_TYPE,
301 WS_FAULT_TYPE,
302 WS_VOID_TYPE,
303 WS_ENUM_TYPE,
304 WS_DURATION_TYPE,
305 WS_UNION_TYPE,
306 WS_ANY_ATTRIBUTES_TYPE
307 } WS_TYPE;
309 typedef enum {
310 WS_READ_REQUIRED_VALUE = 1,
311 WS_READ_REQUIRED_POINTER = 2,
312 WS_READ_OPTIONAL_POINTER = 3,
313 WS_READ_NILLABLE_POINTER = 4,
314 WS_READ_NILLABLE_VALUE = 5
315 } WS_READ_OPTION;
317 typedef enum {
318 WS_WRITE_REQUIRED_VALUE = 1,
319 WS_WRITE_REQUIRED_POINTER = 2,
320 WS_WRITE_NILLABLE_VALUE = 3,
321 WS_WRITE_NILLABLE_POINTER = 4
322 } WS_WRITE_OPTION;
324 typedef struct _WS_BOOL_DESCRIPTION {
325 BOOL value;
326 } WS_BOOL_DESCRIPTION;
328 typedef struct _WS_INT8_DESCRIPTION {
329 char minValue;
330 char maxValue;
331 } WS_INT8_DESCRIPTION;
333 typedef struct _WS_INT16_DESCRIPTION {
334 short minValue;
335 short maxValue;
336 } WS_INT16_DESCRIPTION;
338 typedef struct _WS_INT32_DESCRIPTION {
339 int minValue;
340 int maxValue;
341 } WS_INT32_DESCRIPTION;
343 typedef struct _WS_INT64_DESCRIPTION {
344 __int64 minValue;
345 __int64 maxValue;
346 } WS_INT64_DESCRIPTION;
348 typedef struct _WS_UINT8_DESCRIPTION {
349 BYTE minValue;
350 BYTE maxValue;
351 } WS_UINT8_DESCRIPTION;
353 typedef struct _WS_UINT16_DESCRIPTION {
354 USHORT minValue;
355 USHORT maxValue;
356 } WS_UINT16_DESCRIPTION;
358 typedef struct _WS_UINT32_DESCRIPTION {
359 ULONG minValue;
360 ULONG maxValue;
361 } WS_UINT32_DESCRIPTION;
363 typedef struct _WS_UINT64_DESCRIPTION {
364 unsigned __int64 minValue;
365 unsigned __int64 maxValue;
366 } WS_UINT64_DESCRIPTION;
368 typedef struct _WS_WSZ_DESCRIPTION {
369 ULONG minCharCount;
370 ULONG maxCharCount;
371 } WS_WSZ_DESCRIPTION;
373 struct _WS_ENUM_VALUE {
374 int value;
375 WS_XML_STRING *name;
378 struct _WS_ENUM_DESCRIPTION {
379 WS_ENUM_VALUE *values;
380 ULONG valueCount;
381 ULONG maxByteCount;
382 ULONG *nameIndices;
385 struct _WS_DOUBLE_DESCRIPTION {
386 double minValue;
387 double maxValue;
390 typedef enum {
391 WS_TYPE_ATTRIBUTE_FIELD_MAPPING,
392 WS_ATTRIBUTE_FIELD_MAPPING,
393 WS_ELEMENT_FIELD_MAPPING,
394 WS_REPEATING_ELEMENT_FIELD_MAPPING,
395 WS_TEXT_FIELD_MAPPING,
396 WS_NO_FIELD_MAPPING,
397 WS_XML_ATTRIBUTE_FIELD_MAPPING,
398 WS_ELEMENT_CHOICE_FIELD_MAPPING,
399 WS_REPEATING_ELEMENT_CHOICE_FIELD_MAPPING,
400 WS_ANY_ELEMENT_FIELD_MAPPING,
401 WS_REPEATING_ANY_ELEMENT_FIELD_MAPPING,
402 WS_ANY_CONTENT_FIELD_MAPPING,
403 WS_ANY_ATTRIBUTES_FIELD_MAPPING
404 } WS_FIELD_MAPPING;
406 typedef struct _WS_DEFAULT_VALUE {
407 void *value;
408 ULONG valueSize;
409 } WS_DEFAULT_VALUE;
411 typedef struct _WS_ITEM_RANGE {
412 ULONG minItemCount;
413 ULONG maxItemCount;
414 } WS_ITEM_RANGE;
416 enum
418 WS_FIELD_POINTER = 0x1,
419 WS_FIELD_OPTIONAL = 0x2,
420 WS_FIELD_NILLABLE = 0x4,
421 WS_FIELD_NILLABLE_ITEM = 0x8,
422 WS_FIELD_OTHER_NAMESPACE = 0x10
425 typedef struct _WS_FIELD_DESCRIPTION {
426 WS_FIELD_MAPPING mapping;
427 WS_XML_STRING *localName;
428 WS_XML_STRING *ns;
429 WS_TYPE type;
430 void *typeDescription;
431 ULONG offset;
432 ULONG options;
433 WS_DEFAULT_VALUE *defaultValue;
434 ULONG countOffset;
435 WS_XML_STRING *itemLocalName;
436 WS_XML_STRING *itemNs;
437 WS_ITEM_RANGE *itemRange;
438 } WS_FIELD_DESCRIPTION;
440 enum
442 WS_STRUCT_ABSTRACT = 0x1,
443 WS_STRUCT_IGNORE_TRAILING_ELEMENT_CONTENT = 0x2,
444 WS_STRUCT_IGNORE_UNHANDLED_ATTRIBUTES = 0x4
447 typedef struct _WS_STRUCT_DESCRIPTION {
448 ULONG size;
449 ULONG alignment;
450 WS_FIELD_DESCRIPTION **fields;
451 ULONG fieldCount;
452 WS_XML_STRING *typeLocalName;
453 WS_XML_STRING *typeNs;
454 struct _WS_STRUCT_DESCRIPTION *parentType;
455 struct _WS_STRUCT_DESCRIPTION **subTypes;
456 ULONG subTypeCount;
457 ULONG structOptions;
458 } WS_STRUCT_DESCRIPTION;
460 typedef struct _WS_ATTRIBUTE_DESCRIPTION {
461 WS_XML_STRING *attributeLocalName;
462 WS_XML_STRING *attributeNs;
463 WS_TYPE type;
464 void *typeDescription;
465 } WS_ATTRIBUTE_DESCRIPTION;
467 typedef struct _WS_ELEMENT_DESCRIPTION {
468 WS_XML_STRING *elementLocalName;
469 WS_XML_STRING *elementNs;
470 WS_TYPE type;
471 void *typeDescription;
472 } WS_ELEMENT_DESCRIPTION;
474 typedef struct _WS_STRING {
475 ULONG length;
476 WCHAR *chars;
477 } WS_STRING;
479 typedef enum {
480 WS_XML_NODE_TYPE_ELEMENT = 1,
481 WS_XML_NODE_TYPE_TEXT = 2,
482 WS_XML_NODE_TYPE_END_ELEMENT = 3,
483 WS_XML_NODE_TYPE_COMMENT = 4,
484 WS_XML_NODE_TYPE_CDATA = 6,
485 WS_XML_NODE_TYPE_END_CDATA = 7,
486 WS_XML_NODE_TYPE_EOF = 8,
487 WS_XML_NODE_TYPE_BOF = 9
488 } WS_XML_NODE_TYPE;
490 typedef struct _WS_XML_NODE {
491 WS_XML_NODE_TYPE nodeType;
492 } WS_XML_NODE;
494 typedef enum {
495 WS_MOVE_TO_ROOT_ELEMENT,
496 WS_MOVE_TO_NEXT_ELEMENT,
497 WS_MOVE_TO_PREVIOUS_ELEMENT,
498 WS_MOVE_TO_CHILD_ELEMENT,
499 WS_MOVE_TO_END_ELEMENT,
500 WS_MOVE_TO_PARENT_ELEMENT,
501 WS_MOVE_TO_NEXT_NODE,
502 WS_MOVE_TO_PREVIOUS_NODE,
503 WS_MOVE_TO_FIRST_NODE,
504 WS_MOVE_TO_BOF,
505 WS_MOVE_TO_EOF,
506 WS_MOVE_TO_CHILD_NODE
507 } WS_MOVE_TO;
509 typedef enum {
510 WS_XML_TEXT_TYPE_UTF8 = 1,
511 WS_XML_TEXT_TYPE_UTF16 = 2,
512 WS_XML_TEXT_TYPE_BASE64 = 3,
513 WS_XML_TEXT_TYPE_BOOL = 4,
514 WS_XML_TEXT_TYPE_INT32 = 5,
515 WS_XML_TEXT_TYPE_INT64 = 6,
516 WS_XML_TEXT_TYPE_UINT64 = 7,
517 WS_XML_TEXT_TYPE_FLOAT = 8,
518 WS_XML_TEXT_TYPE_DOUBLE = 9,
519 WS_XML_TEXT_TYPE_DECIMAL = 10,
520 WS_XML_TEXT_TYPE_GUID = 11,
521 WS_XML_TEXT_TYPE_UNIQUE_ID = 12,
522 WS_XML_TEXT_TYPE_DATETIME = 13,
523 WS_XML_TEXT_TYPE_TIMESPAN = 14,
524 WS_XML_TEXT_TYPE_QNAME = 15,
525 WS_XML_TEXT_TYPE_LIST = 16
526 } WS_XML_TEXT_TYPE;
528 typedef struct _WS_XML_TEXT {
529 WS_XML_TEXT_TYPE textType;
530 } WS_XML_TEXT;
532 typedef struct _WS_XML_UTF8_TEXT {
533 WS_XML_TEXT text;
534 WS_XML_STRING value;
535 } WS_XML_UTF8_TEXT;
537 typedef enum {
538 WS_BOOL_VALUE_TYPE,
539 WS_INT8_VALUE_TYPE,
540 WS_INT16_VALUE_TYPE,
541 WS_INT32_VALUE_TYPE,
542 WS_INT64_VALUE_TYPE,
543 WS_UINT8_VALUE_TYPE,
544 WS_UINT16_VALUE_TYPE,
545 WS_UINT32_VALUE_TYPE,
546 WS_UINT64_VALUE_TYPE,
547 WS_FLOAT_VALUE_TYPE,
548 WS_DOUBLE_VALUE_TYPE,
549 WS_DECIMAL_VALUE_TYPE,
550 WS_DATETIME_VALUE_TYPE,
551 WS_TIMESPAN_VALUE_TYPE,
552 WS_GUID_VALUE_TYPE,
553 WS_DURATION_VALUE_TYPE
554 } WS_VALUE_TYPE;
556 typedef struct _WS_XML_ATTRIBUTE {
557 BYTE singleQuote;
558 BYTE isXmlNs;
559 WS_XML_STRING *prefix;
560 WS_XML_STRING *localName;
561 WS_XML_STRING *ns;
562 WS_XML_TEXT *value;
563 } WS_XML_ATTRIBUTE;
565 typedef struct _WS_XML_ELEMENT_NODE {
566 WS_XML_NODE node;
567 WS_XML_STRING *prefix;
568 WS_XML_STRING *localName;
569 WS_XML_STRING *ns;
570 ULONG attributeCount;
571 WS_XML_ATTRIBUTE **attributes;
572 BOOL isEmpty;
573 } WS_XML_ELEMENT_NODE;
575 typedef struct _WS_XML_TEXT_NODE {
576 WS_XML_NODE node;
577 WS_XML_TEXT *text;
578 } WS_XML_TEXT_NODE;
580 typedef struct _WS_XML_COMMENT_NODE {
581 WS_XML_NODE node;
582 WS_XML_STRING value;
583 } WS_XML_COMMENT_NODE;
585 typedef struct _WS_XML_NODE_POSITION {
586 WS_XML_BUFFER *buffer;
587 void *node;
588 } WS_XML_NODE_POSITION;
590 typedef enum {
591 WS_SERVICE_PROXY_STATE_CREATED,
592 WS_SERVICE_PROXY_STATE_OPENING,
593 WS_SERVICE_PROXY_STATE_OPEN,
594 WS_SERVICE_PROXY_STATE_CLOSING,
595 WS_SERVICE_PROXY_STATE_CLOSED,
596 WS_SERVICE_PROXY_STATE_FAULTED
597 } WS_SERVICE_PROXY_STATE;
599 typedef enum {
600 WS_PROXY_PROPERTY_CALL_TIMEOUT,
601 WS_PROXY_PROPERTY_MESSAGE_PROPERTIES,
602 WS_PROXY_PROPERTY_MAX_CALL_POOL_SIZE,
603 WS_PROXY_PROPERTY_STATE,
604 WS_PROXY_PROPERTY_MAX_PENDING_CALLS,
605 WS_PROXY_PROPERTY_MAX_CLOSE_TIMEOUT,
606 WS_PROXY_FAULT_LANG_ID
607 } WS_PROXY_PROPERTY_ID;
609 struct _WS_PROXY_PROPERTY {
610 WS_PROXY_PROPERTY_ID id;
611 void *value;
612 ULONG valueSize;
615 typedef enum {
616 WS_CHANNEL_TYPE_INPUT = 0x1,
617 WS_CHANNEL_TYPE_OUTPUT = 0x2,
618 WS_CHANNEL_TYPE_SESSION = 0x4,
619 WS_CHANNEL_TYPE_INPUT_SESSION = (WS_CHANNEL_TYPE_INPUT | WS_CHANNEL_TYPE_SESSION),
620 WS_CHANNEL_TYPE_OUTPUT_SESSION = (WS_CHANNEL_TYPE_OUTPUT | WS_CHANNEL_TYPE_SESSION),
621 WS_CHANNEL_TYPE_DUPLEX = (WS_CHANNEL_TYPE_INPUT | WS_CHANNEL_TYPE_OUTPUT),
622 WS_CHANNEL_TYPE_DUPLEX_SESSION = (WS_CHANNEL_TYPE_INPUT | WS_CHANNEL_TYPE_OUTPUT | WS_CHANNEL_TYPE_SESSION),
623 WS_CHANNEL_TYPE_REQUEST = 0x8,
624 WS_CHANNEL_TYPE_REPLY = 0x10
625 } WS_CHANNEL_TYPE;
627 typedef enum {
628 WS_ENCODING_XML_BINARY_1,
629 WS_ENCODING_XML_BINARY_SESSION_1,
630 WS_ENCODING_XML_MTOM_UTF8,
631 WS_ENCODING_XML_MTOM_UTF16BE,
632 WS_ENCODING_XML_MTOM_UTF16LE,
633 WS_ENCODING_XML_UTF8,
634 WS_ENCODING_XML_UTF16BE,
635 WS_ENCODING_XML_UTF16LE,
636 WS_ENCODING_RAW
637 } WS_ENCODING;
639 typedef enum {
640 WS_CHANNEL_STATE_CREATED,
641 WS_CHANNEL_STATE_OPENING,
642 WS_CHANNEL_STATE_ACCEPTING,
643 WS_CHANNEL_STATE_OPEN,
644 WS_CHANNEL_STATE_FAULTED,
645 WS_CHANNEL_STATE_CLOSING,
646 WS_CHANNEL_STATE_CLOSED
647 } WS_CHANNEL_STATE;
649 typedef enum {
650 WS_CHANNEL_PROPERTY_MAX_BUFFERED_MESSAGE_SIZE = 0,
651 WS_CHANNEL_PROPERTY_MAX_STREAMED_MESSAGE_SIZE = 1,
652 WS_CHANNEL_PROPERTY_MAX_STREAMED_START_SIZE = 2,
653 WS_CHANNEL_PROPERTY_MAX_STREAMED_FLUSH_SIZE = 3,
654 WS_CHANNEL_PROPERTY_ENCODING = 4,
655 WS_CHANNEL_PROPERTY_ENVELOPE_VERSION = 5,
656 WS_CHANNEL_PROPERTY_ADDRESSING_VERSION = 6,
657 WS_CHANNEL_PROPERTY_MAX_SESSION_DICTIONARY_SIZE = 7,
658 WS_CHANNEL_PROPERTY_STATE = 8,
659 WS_CHANNEL_PROPERTY_ASYNC_CALLBACK_MODEL = 9,
660 WS_CHANNEL_PROPERTY_IP_VERSION = 10,
661 WS_CHANNEL_PROPERTY_RESOLVE_TIMEOUT = 11,
662 WS_CHANNEL_PROPERTY_CONNECT_TIMEOUT = 12,
663 WS_CHANNEL_PROPERTY_SEND_TIMEOUT = 13,
664 WS_CHANNEL_PROPERTY_RECEIVE_RESPONSE_TIMEOUT = 14,
665 WS_CHANNEL_PROPERTY_RECEIVE_TIMEOUT = 15,
666 WS_CHANNEL_PROPERTY_CLOSE_TIMEOUT = 16,
667 WS_CHANNEL_PROPERTY_ENABLE_TIMEOUTS = 17,
668 WS_CHANNEL_PROPERTY_TRANSFER_MODE = 18,
669 WS_CHANNEL_PROPERTY_MULTICAST_INTERFACE = 19,
670 WS_CHANNEL_PROPERTY_MULTICAST_HOPS = 20,
671 WS_CHANNEL_PROPERTY_REMOTE_ADDRESS = 21,
672 WS_CHANNEL_PROPERTY_REMOTE_IP_ADDRESS = 22,
673 WS_CHANNEL_PROPERTY_HTTP_CONNECTION_ID = 23,
674 WS_CHANNEL_PROPERTY_CUSTOM_CHANNEL_CALLBACKS = 24,
675 WS_CHANNEL_PROPERTY_CUSTOM_CHANNEL_PARAMETERS = 25,
676 WS_CHANNEL_PROPERTY_CUSTOM_CHANNEL_INSTANCE = 26,
677 WS_CHANNEL_PROPERTY_TRANSPORT_URL = 27,
678 WS_CHANNEL_PROPERTY_NO_DELAY = 28,
679 WS_CHANNEL_PROPERTY_SEND_KEEP_ALIVES = 29,
680 WS_CHANNEL_PROPERTY_KEEP_ALIVE_TIME = 30,
681 WS_CHANNEL_PROPERTY_KEEP_ALIVE_INTERVAL = 31,
682 WS_CHANNEL_PROPERTY_MAX_HTTP_SERVER_CONNECTIONS = 32,
683 WS_CHANNEL_PROPERTY_IS_SESSION_SHUT_DOWN = 33,
684 WS_CHANNEL_PROPERTY_CHANNEL_TYPE = 34,
685 WS_CHANNEL_PROPERTY_TRIM_BUFFERED_MESSAGE_SIZE = 35,
686 WS_CHANNEL_PROPERTY_ENCODER = 36,
687 WS_CHANNEL_PROPERTY_DECODER = 37,
688 WS_CHANNEL_PROPERTY_PROTECTION_LEVEL = 38,
689 WS_CHANNEL_PROPERTY_COOKIE_MODE = 39,
690 WS_CHANNEL_PROPERTY_HTTP_PROXY_SETTING_MODE = 40,
691 WS_CHANNEL_PROPERTY_CUSTOM_HTTP_PROXY = 41,
692 WS_CHANNEL_PROPERTY_HTTP_MESSAGE_MAPPING = 42,
693 WS_CHANNEL_PROPERTY_ENABLE_HTTP_REDIRECT = 43,
694 WS_CHANNEL_PROPERTY_HTTP_REDIRECT_CALLBACK_CONTEXT = 44,
695 WS_CHANNEL_PROPERTY_FAULTS_AS_ERRORS = 45,
696 WS_CHANNEL_PROPERTY_ALLOW_UNSECURED_FAULTS = 46,
697 WS_CHANNEL_PROPERTY_HTTP_SERVER_SPN = 47,
698 WS_CHANNEL_PROPERTY_HTTP_PROXY_SPN = 48,
699 WS_CHANNEL_PROPERTY_MAX_HTTP_REQUEST_HEADERS_BUFFER_SIZE = 49
700 } WS_CHANNEL_PROPERTY_ID;
702 struct _WS_CHANNEL_PROPERTY {
703 WS_CHANNEL_PROPERTY_ID id;
704 void *value;
705 ULONG valueSize;
708 struct _WS_CHANNEL_PROPERTIES {
709 WS_CHANNEL_PROPERTY *properties;
710 ULONG propertyCount;
713 typedef enum {
714 WS_HTTP_CHANNEL_BINDING,
715 WS_TCP_CHANNEL_BINDING,
716 WS_UDP_CHANNEL_BINDING,
717 WS_CUSTOM_CHANNEL_BINDING,
718 WS_NAMEDPIPE_CHANNEL_BINDING
719 } WS_CHANNEL_BINDING;
721 typedef enum {
722 WS_SSL_TRANSPORT_SECURITY_BINDING_TYPE,
723 WS_TCP_SSPI_TRANSPORT_SECURITY_BINDING_TYPE,
724 WS_HTTP_HEADER_AUTH_SECURITY_BINDING_TYPE,
725 WS_USERNAME_MESSAGE_SECURITY_BINDING_TYPE,
726 WS_KERBEROS_APREQ_MESSAGE_SECURITY_BINDING_TYPE,
727 WS_XML_TOKEN_MESSAGE_SECURITY_BINDING_TYPE,
728 WS_SAML_MESSAGE_SECURITY_BINDING_TYPE,
729 WS_SECURITY_CONTEXT_MESSAGE_SECURITY_BINDING_TYPE,
730 WS_NAMEDPIPE_SSPI_TRANSPORT_SECURITY_BINDING_TYPE
731 } WS_SECURITY_BINDING_TYPE;
733 typedef enum {
734 WS_SECURITY_BINDING_PROPERTY_REQUIRE_SSL_CLIENT_CERT = 1,
735 WS_SECURITY_BINDING_PROPERTY_WINDOWS_INTEGRATED_AUTH_PACKAGE = 2,
736 WS_SECURITY_BINDING_PROPERTY_REQUIRE_SERVER_AUTH = 3,
737 WS_SECURITY_BINDING_PROPERTY_ALLOW_ANONYMOUS_CLIENTS = 4,
738 WS_SECURITY_BINDING_PROPERTY_ALLOWED_IMPERSONATION_LEVEL = 5,
739 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_SCHEME = 6,
740 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_TARGET = 7,
741 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_BASIC_REALM = 8,
742 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_DIGEST_REALM = 9,
743 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_DIGEST_DOMAIN = 10,
744 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_KEY_SIZE = 11,
745 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_KEY_ENTROPY_MODE = 12,
746 WS_SECURITY_BINDING_PROPERTY_MESSAGE_PROPERTIES = 13,
747 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_MAX_PENDING_CONTEXTS = 14,
748 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_MAX_ACTIVE_CONTEXTS = 15,
749 WS_SECURITY_BINDING_PROPERTY_SECURE_CONVERSATION_VERSION = 16,
750 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_SUPPORT_RENEW = 17,
751 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_RENEWAL_INTERVAL = 18,
752 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_ROLLOVER_INTERVAL = 19,
753 WS_SECURITY_BINDING_PROPERTY_CERT_FAILURES_TO_IGNORE = 20,
754 WS_SECURITY_BINDING_PROPERTY_DISABLE_CERT_REVOCATION_CHECK = 21,
755 WS_SECURITY_BINDING_PROPERTY_DISALLOWED_SECURE_PROTOCOLS = 22,
756 WS_SECURITY_BINDING_PROPERTY_CERTIFICATE_VALIDATION_CALLBACK_CONTEXT = 23
757 } WS_SECURITY_BINDING_PROPERTY_ID;
759 struct _WS_SECURITY_BINDING_PROPERTY {
760 WS_SECURITY_BINDING_PROPERTY_ID id;
761 void *value;
762 ULONG valueSize;
765 struct _WS_SECURITY_BINDING_PROPERTIES {
766 WS_SECURITY_BINDING_PROPERTY *properties;
767 ULONG propertyCount;
770 struct _WS_SECURITY_BINDING {
771 WS_SECURITY_BINDING_TYPE bindingType;
772 WS_SECURITY_BINDING_PROPERTY *properties;
773 ULONG propertyCount;
776 typedef enum {
777 WS_SECURITY_PROPERTY_TRANSPORT_PROTECTION_LEVEL = 1,
778 WS_SECURITY_PROPERTY_ALGORITHM_SUITE = 2,
779 WS_SECURITY_PROPERTY_ALGORITHM_SUITE_NAME = 3,
780 WS_SECURITY_PROPERTY_MAX_ALLOWED_LATENCY = 4,
781 WS_SECURITY_PROPERTY_TIMESTAMP_VALIDITY_DURATION = 5,
782 WS_SECURITY_PROPERTY_MAX_ALLOWED_CLOCK_SKEW = 6,
783 WS_SECURITY_PROPERTY_TIMESTAMP_USAGE = 7,
784 WS_SECURITY_PROPERTY_SECURITY_HEADER_LAYOUT = 8,
785 WS_SECURITY_PROPERTY_SECURITY_HEADER_VERSION = 9,
786 WS_SECURITY_PROPERTY_EXTENDED_PROTECTION_POLICY = 10,
787 WS_SECURITY_PROPERTY_EXTENDED_PROTECTION_SCENARIO = 11,
788 WS_SECURITY_PROPERTY_SERVICE_IDENTITIES = 12
789 } WS_SECURITY_PROPERTY_ID;
791 struct _WS_SECURITY_PROPERTY {
792 WS_SECURITY_PROPERTY_ID id;
793 void *value;
794 ULONG valueSize;
797 struct _WS_SECURITY_PROPERTIES {
798 WS_SECURITY_PROPERTY *properties;
799 ULONG propertyCount;
802 struct _WS_SECURITY_DESCRIPTION {
803 WS_SECURITY_BINDING **securityBindings;
804 ULONG securityBindingCount;
805 WS_SECURITY_PROPERTY *properties;
806 ULONG propertyCount;
809 typedef enum {
810 WS_HTTP_BINDING_TEMPLATE_TYPE,
811 WS_HTTP_SSL_BINDING_TEMPLATE_TYPE,
812 WS_HTTP_HEADER_AUTH_BINDING_TEMPLATE_TYPE,
813 WS_HTTP_SSL_HEADER_AUTH_BINDING_TEMPLATE_TYPE,
814 WS_HTTP_SSL_USERNAME_BINDING_TEMPLATE_TYPE,
815 WS_HTTP_SSL_KERBEROS_APREQ_BINDING_TEMPLATE_TYPE,
816 WS_TCP_BINDING_TEMPLATE_TYPE,
817 WS_TCP_SSPI_BINDING_TEMPLATE_TYPE,
818 WS_TCP_SSPI_USERNAME_BINDING_TEMPLATE_TYPE,
819 WS_TCP_SSPI_KERBEROS_APREQ_BINDING_TEMPLATE_TYPE,
820 WS_HTTP_SSL_USERNAME_SECURITY_CONTEXT_BINDING_TEMPLATE_TYPE,
821 WS_HTTP_SSL_KERBEROS_APREQ_SECURITY_CONTEXT_BINDING_TEMPLATE_TYPE,
822 WS_TCP_SSPI_USERNAME_SECURITY_CONTEXT_BINDING_TEMPLATE_TYPE,
823 WS_TCP_SSPI_KERBEROS_APREQ_SECURITY_CONTEXT_BINDING_TEMPLATE_TYPE
824 } WS_BINDING_TEMPLATE_TYPE;
826 typedef enum {
827 WS_SUBJECT_NAME_CERT_CREDENTIAL_TYPE = 1,
828 WS_THUMBPRINT_CERT_CREDENTIAL_TYPE = 2,
829 WS_CUSTOM_CERT_CREDENTIAL_TYPE = 3
830 } WS_CERT_CREDENTIAL_TYPE;
832 struct _WS_CERT_CREDENTIAL {
833 WS_CERT_CREDENTIAL_TYPE credentialType;
836 struct _WS_SSL_TRANSPORT_SECURITY_BINDING_TEMPLATE {
837 WS_SECURITY_BINDING_PROPERTIES securityBindingProperties;
838 WS_CERT_CREDENTIAL *localCertCredential;
841 struct _WS_HTTP_BINDING_TEMPLATE {
842 WS_CHANNEL_PROPERTIES channelProperties;
845 struct _WS_HTTP_SSL_BINDING_TEMPLATE {
846 WS_CHANNEL_PROPERTIES channelProperties;
847 WS_SECURITY_PROPERTIES securityProperties;
848 WS_SSL_TRANSPORT_SECURITY_BINDING_TEMPLATE sslTransportSecurityBinding;
851 typedef enum {
852 WS_ADDRESSING_VERSION_0_9 = 1,
853 WS_ADDRESSING_VERSION_1_0 = 2,
854 WS_ADDRESSING_VERSION_TRANSPORT = 3
855 } WS_ADDRESSING_VERSION;
857 typedef enum {
858 WS_ENVELOPE_VERSION_SOAP_1_1 = 1,
859 WS_ENVELOPE_VERSION_SOAP_1_2 = 2,
860 WS_ENVELOPE_VERSION_NONE = 3
861 } WS_ENVELOPE_VERSION;
863 typedef enum {
864 WS_MESSAGE_PROPERTY_STATE,
865 WS_MESSAGE_PROPERTY_HEAP,
866 WS_MESSAGE_PROPERTY_ENVELOPE_VERSION,
867 WS_MESSAGE_PROPERTY_ADDRESSING_VERSION,
868 WS_MESSAGE_PROPERTY_HEADER_BUFFER,
869 WS_MESSAGE_PROPERTY_HEADER_POSITION,
870 WS_MESSAGE_PROPERTY_BODY_READER,
871 WS_MESSAGE_PROPERTY_BODY_WRITER,
872 WS_MESSAGE_PROPERTY_IS_ADDRESSED,
873 WS_MESSAGE_PROPERTY_HEAP_PROPERTIES,
874 WS_MESSAGE_PROPERTY_XML_READER_PROPERTIES,
875 WS_MESSAGE_PROPERTY_XML_WRITER_PROPERTIES,
876 WS_MESSAGE_PROPERTY_IS_FAULT,
877 WS_MESSAGE_PROPERTY_MAX_PROCESSED_HEADERS,
878 WS_MESSAGE_PROPERTY_USERNAME,
879 WS_MESSAGE_PROPERTY_ENCODED_CERT,
880 WS_MESSAGE_PROPERTY_TRANSPORT_SECURITY_WINDOWS_TOKEN,
881 WS_MESSAGE_PROPERTY_HTTP_HEADER_AUTH_WINDOWS_TOKEN,
882 WS_MESSAGE_PROPERTY_MESSAGE_SECURITY_WINDOWS_TOKEN,
883 WS_MESSAGE_PROPERTY_SAML_ASSERTION,
884 WS_MESSAGE_PROPERTY_SECURITY_CONTEXT,
885 WS_MESSAGE_PROPERTY_PROTECTION_LEVEL
886 } WS_MESSAGE_PROPERTY_ID;
888 struct _WS_MESSAGE_PROPERTY {
889 WS_MESSAGE_PROPERTY_ID id;
890 void *value;
891 ULONG valueSize;
894 struct _WS_MESSAGE_PROPERTIES {
895 WS_MESSAGE_PROPERTY *properties;
896 ULONG propertyCount;
899 typedef enum {
900 WS_MESSAGE_STATE_EMPTY = 1,
901 WS_MESSAGE_STATE_INITIALIZED = 2,
902 WS_MESSAGE_STATE_READING = 3,
903 WS_MESSAGE_STATE_WRITING = 4,
904 WS_MESSAGE_STATE_DONE = 5
905 } WS_MESSAGE_STATE;
907 typedef enum {
908 WS_BLANK_MESSAGE,
909 WS_DUPLICATE_MESSAGE,
910 WS_REQUEST_MESSAGE,
911 WS_REPLY_MESSAGE,
912 WS_FAULT_MESSAGE
913 } WS_MESSAGE_INITIALIZATION;
915 typedef enum {
916 WS_DNS_ENDPOINT_IDENTITY_TYPE = 1,
917 WS_UPN_ENDPOINT_IDENTITY_TYPE = 2,
918 WS_SPN_ENDPOINT_IDENTITY_TYPE = 3,
919 WS_RSA_ENDPOINT_IDENTITY_TYPE = 4,
920 WS_CERT_ENDPOINT_IDENTITY_TYPE = 5,
921 WS_UNKNOWN_ENDPOINT_IDENTITY_TYPE = 6
922 } WS_ENDPOINT_IDENTITY_TYPE;
924 struct _WS_ENDPOINT_IDENTITY {
925 WS_ENDPOINT_IDENTITY_TYPE identityType;
928 struct _WS_ENDPOINT_ADDRESS {
929 WS_STRING url;
930 WS_XML_BUFFER *headers;
931 WS_XML_BUFFER *extensions;
932 WS_ENDPOINT_IDENTITY *identity;
935 struct _WS_HTTP_POLICY_DESCRIPTION {
936 WS_CHANNEL_PROPERTIES channelProperties;
939 struct _WS_MESSAGE_DESCRIPTION {
940 WS_XML_STRING *action;
941 WS_ELEMENT_DESCRIPTION *bodyElementDescription;
944 typedef enum {
945 WS_PARAMETER_TYPE_NORMAL,
946 WS_PARAMETER_TYPE_ARRAY,
947 WS_PARAMETER_TYPE_ARRAY_COUNT,
948 WS_PARAMETER_TYPE_MESSAGES
949 } WS_PARAMETER_TYPE;
951 struct _WS_PARAMETER_DESCRIPTION {
952 WS_PARAMETER_TYPE parameterType;
953 USHORT inputMessageIndex;
954 USHORT outputMessageIndex;
957 typedef HRESULT (CALLBACK *WS_SERVICE_STUB_CALLBACK)(
958 const WS_OPERATION_CONTEXT *context,
959 void *frame,
960 const void *callback,
961 const WS_ASYNC_CONTEXT *asyncContext,
962 WS_ERROR *error );
964 typedef enum {
965 WS_NON_RPC_LITERAL_OPERATION,
966 WS_RPC_LITERAL_OPERATION
967 } WS_OPERATION_STYLE;
969 struct _WS_OPERATION_DESCRIPTION {
970 ULONG versionInfo;
971 WS_MESSAGE_DESCRIPTION *inputMessageDescription;
972 WS_MESSAGE_DESCRIPTION *outputMessageDescription;
973 ULONG inputMessageOptions;
974 ULONG outputMessageOptions;
975 USHORT parameterCount;
976 WS_PARAMETER_DESCRIPTION *parameterDescription;
977 WS_SERVICE_STUB_CALLBACK stubCallback;
978 WS_OPERATION_STYLE style;
981 typedef enum {
982 WS_CALL_PROPERTY_CHECK_MUST_UNDERSTAND,
983 WS_CALL_PROPERTY_SEND_MESSAGE_CONTEXT,
984 WS_CALL_PROPERTY_RECEIVE_MESSAGE_CONTEXT,
985 WS_CALL_PROPERTY_CALL_ID
986 } WS_CALL_PROPERTY_ID;
988 struct _WS_CALL_PROPERTY {
989 WS_CALL_PROPERTY_ID id;
990 void *value;
991 ULONG valueSize;
994 typedef enum {
995 WS_DATETIME_FORMAT_UTC,
996 WS_DATETIME_FORMAT_LOCAL,
997 WS_DATETIME_FORMAT_NONE
998 } WS_DATETIME_FORMAT;
1000 struct _WS_DATETIME {
1001 unsigned __int64 ticks;
1002 WS_DATETIME_FORMAT format;
1005 struct _WS_DATETIME_DESCRIPTION {
1006 WS_DATETIME minValue;
1007 WS_DATETIME maxValue;
1010 HRESULT WINAPI WsAlloc(WS_HEAP*, SIZE_T, void**, WS_ERROR*);
1011 HRESULT WINAPI WsCall(WS_SERVICE_PROXY*, const WS_OPERATION_DESCRIPTION*, const void**,
1012 WS_HEAP*, const WS_CALL_PROPERTY*, const ULONG, const WS_ASYNC_CONTEXT*,
1013 WS_ERROR*);
1014 HRESULT WINAPI WsCloseChannel(WS_CHANNEL*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
1015 HRESULT WINAPI WsCloseServiceProxy(WS_SERVICE_PROXY*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
1016 HRESULT WINAPI WsCreateChannel(WS_CHANNEL_TYPE, WS_CHANNEL_BINDING, const WS_CHANNEL_PROPERTY*,
1017 ULONG, const WS_SECURITY_DESCRIPTION*, WS_CHANNEL**, WS_ERROR*);
1018 HRESULT WINAPI WsCreateError(const WS_ERROR_PROPERTY*, ULONG, WS_ERROR**);
1019 HRESULT WINAPI WsCreateHeap(SIZE_T, SIZE_T, const WS_HEAP_PROPERTY*, ULONG, WS_HEAP**, WS_ERROR*);
1020 HRESULT WINAPI WsCreateMessage(WS_ENVELOPE_VERSION, WS_ADDRESSING_VERSION, const WS_MESSAGE_PROPERTY*,
1021 ULONG, WS_MESSAGE**, WS_ERROR*);
1022 HRESULT WINAPI WsCreateMessageForChannel(WS_CHANNEL*, const WS_MESSAGE_PROPERTY*, ULONG, WS_MESSAGE**,
1023 WS_ERROR*);
1024 HRESULT WINAPI WsCreateReader(const WS_XML_READER_PROPERTY*, ULONG, WS_XML_READER**, WS_ERROR*);
1025 HRESULT WINAPI WsCreateServiceProxy(const WS_CHANNEL_TYPE, const WS_CHANNEL_BINDING,
1026 const WS_SECURITY_DESCRIPTION*, const WS_PROXY_PROPERTY*,
1027 const ULONG, const WS_CHANNEL_PROPERTY*, const ULONG,
1028 WS_SERVICE_PROXY**, WS_ERROR*);
1029 HRESULT WINAPI WsCreateServiceProxyFromTemplate(WS_CHANNEL_TYPE, const WS_PROXY_PROPERTY*,
1030 const ULONG, WS_BINDING_TEMPLATE_TYPE,
1031 void*, ULONG, const void*, ULONG,
1032 WS_SERVICE_PROXY**, WS_ERROR*);
1033 HRESULT WINAPI WsCreateWriter(const WS_XML_WRITER_PROPERTY*, ULONG, WS_XML_WRITER**, WS_ERROR*);
1034 HRESULT WINAPI WsCreateXmlBuffer(WS_HEAP*, const WS_XML_BUFFER_PROPERTY*, ULONG, WS_XML_BUFFER**,
1035 WS_ERROR*);
1036 HRESULT WINAPI WsDateTimeToFileTime(const WS_DATETIME*, FILETIME*, WS_ERROR*);
1037 HRESULT WINAPI WsFileTimeToDateTime(const FILETIME*, WS_DATETIME*, WS_ERROR*);
1038 HRESULT WINAPI WsFillReader(WS_XML_READER*, ULONG, const WS_ASYNC_CONTEXT*, WS_ERROR*);
1039 HRESULT WINAPI WsFindAttribute(WS_XML_READER*, const WS_XML_STRING*, const WS_XML_STRING*, BOOL,
1040 ULONG*, WS_ERROR*);
1041 void WINAPI WsFreeChannel(WS_CHANNEL*);
1042 void WINAPI WsFreeError(WS_ERROR*);
1043 void WINAPI WsFreeHeap(WS_HEAP*);
1044 void WINAPI WsFreeMessage(WS_MESSAGE*);
1045 void WINAPI WsFreeReader(WS_XML_READER*);
1046 void WINAPI WsFreeServiceProxy(WS_SERVICE_PROXY*);
1047 void WINAPI WsFreeWriter(WS_XML_WRITER*);
1048 HRESULT WINAPI WsGetChannelProperty(WS_CHANNEL*, WS_CHANNEL_PROPERTY_ID, void*, ULONG, WS_ERROR*);
1049 HRESULT WINAPI WsGetErrorProperty(WS_ERROR*, WS_ERROR_PROPERTY_ID, void*, ULONG);
1050 HRESULT WINAPI WsGetErrorString(WS_ERROR*, ULONG, WS_STRING*);
1051 HRESULT WINAPI WsGetHeapProperty(WS_HEAP*, WS_HEAP_PROPERTY_ID, void*, ULONG, WS_ERROR*);
1052 HRESULT WINAPI WsGetNamespaceFromPrefix(WS_XML_READER*, const WS_XML_STRING*, BOOL,
1053 const WS_XML_STRING**, WS_ERROR*);
1054 HRESULT WINAPI WsGetPrefixFromNamespace(WS_XML_WRITER*, const WS_XML_STRING*, BOOL,
1055 const WS_XML_STRING**, WS_ERROR*);
1056 HRESULT WINAPI WsGetReaderNode(WS_XML_READER*, const WS_XML_NODE**, WS_ERROR*);
1057 HRESULT WINAPI WsGetReaderPosition(WS_XML_READER*, WS_XML_NODE_POSITION*, WS_ERROR*);
1058 HRESULT WINAPI WsGetReaderProperty(WS_XML_READER*, WS_XML_READER_PROPERTY_ID, void*, ULONG, WS_ERROR*);
1059 HRESULT WINAPI WsGetServiceProxyProperty(WS_SERVICE_PROXY*, const WS_PROXY_PROPERTY_ID, void*,
1060 ULONG, WS_ERROR*);
1061 HRESULT WINAPI WsGetWriterProperty(WS_XML_WRITER*, WS_XML_WRITER_PROPERTY_ID, void*, ULONG, WS_ERROR*);
1062 HRESULT WINAPI WsGetXmlAttribute(WS_XML_READER*, const WS_XML_STRING*, WS_HEAP*, WCHAR**,
1063 ULONG*, WS_ERROR*);
1064 HRESULT WINAPI WsInitializeMessage(WS_MESSAGE*, WS_MESSAGE_INITIALIZATION, WS_MESSAGE*, WS_ERROR*);
1065 HRESULT WINAPI WsMoveReader(WS_XML_READER*, WS_MOVE_TO, BOOL*, WS_ERROR*);
1066 HRESULT WINAPI WsMoveWriter(WS_XML_WRITER*, WS_MOVE_TO, BOOL*, WS_ERROR*);
1067 HRESULT WINAPI WsOpenChannel(WS_CHANNEL*, const WS_ENDPOINT_ADDRESS*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
1068 HRESULT WINAPI WsOpenServiceProxy(WS_SERVICE_PROXY*, const WS_ENDPOINT_ADDRESS*, const WS_ASYNC_CONTEXT*,
1069 WS_ERROR*);
1070 HRESULT WINAPI WsReadAttribute(WS_XML_READER*, const WS_ATTRIBUTE_DESCRIPTION*, WS_READ_OPTION,
1071 WS_HEAP*, void*, ULONG, WS_ERROR*);
1072 HRESULT WINAPI WsReadEndAttribute(WS_XML_READER*, WS_ERROR*);
1073 HRESULT WINAPI WsReadEndElement(WS_XML_READER*, WS_ERROR*);
1074 HRESULT WINAPI WsReadNode(WS_XML_READER*, WS_ERROR*);
1075 HRESULT WINAPI WsReadStartAttribute(WS_XML_READER*, ULONG, WS_ERROR*);
1076 HRESULT WINAPI WsReadStartElement(WS_XML_READER*, WS_ERROR*);
1077 HRESULT WINAPI WsReadToStartElement(WS_XML_READER*, const WS_XML_STRING*, const WS_XML_STRING*,
1078 BOOL*, WS_ERROR*);
1079 HRESULT WINAPI WsReadType(WS_XML_READER*, WS_TYPE_MAPPING, WS_TYPE, const void*, WS_READ_OPTION,
1080 WS_HEAP*, void*, ULONG, WS_ERROR*);
1081 HRESULT WINAPI WsResetHeap(WS_HEAP*, WS_ERROR*);
1082 HRESULT WINAPI WsSendMessage(WS_CHANNEL*, WS_MESSAGE*, const WS_MESSAGE_DESCRIPTION*, WS_WRITE_OPTION,
1083 const void*, ULONG, const WS_ASYNC_CONTEXT*, WS_ERROR*);
1084 HRESULT WINAPI WsSetChannelProperty(WS_CHANNEL*, WS_CHANNEL_PROPERTY_ID, const void*, ULONG, WS_ERROR*);
1085 HRESULT WINAPI WsSetErrorProperty(WS_ERROR*, WS_ERROR_PROPERTY_ID, const void*, ULONG);
1086 HRESULT WINAPI WsSetInput(WS_XML_READER*, const WS_XML_READER_ENCODING*, const WS_XML_READER_INPUT*,
1087 const WS_XML_READER_PROPERTY*, ULONG, WS_ERROR*);
1088 HRESULT WINAPI WsSetInputToBuffer(WS_XML_READER*, WS_XML_BUFFER*, const WS_XML_READER_PROPERTY*,
1089 ULONG, WS_ERROR*);
1090 HRESULT WINAPI WsSetOutput(WS_XML_WRITER*, const WS_XML_WRITER_ENCODING*, const WS_XML_WRITER_OUTPUT*,
1091 const WS_XML_WRITER_PROPERTY*, ULONG, WS_ERROR*);
1092 HRESULT WINAPI WsSetOutputToBuffer(WS_XML_WRITER*, WS_XML_BUFFER*, const WS_XML_WRITER_PROPERTY*,
1093 ULONG, WS_ERROR*);
1094 HRESULT WINAPI WsSkipNode(WS_XML_READER*, WS_ERROR*);
1095 HRESULT WINAPI WsWriteAttribute(WS_XML_WRITER*, const WS_ATTRIBUTE_DESCRIPTION*, WS_WRITE_OPTION,
1096 const void*, ULONG, WS_ERROR*);
1097 HRESULT WINAPI WsWriteElement(WS_XML_WRITER*, const WS_ELEMENT_DESCRIPTION*, WS_WRITE_OPTION,
1098 const void*, ULONG, WS_ERROR*);
1099 HRESULT WINAPI WsWriteEndAttribute(WS_XML_WRITER*, WS_ERROR*);
1100 HRESULT WINAPI WsWriteEndCData(WS_XML_WRITER*, WS_ERROR*);
1101 HRESULT WINAPI WsWriteEndElement(WS_XML_WRITER*, WS_ERROR*);
1102 HRESULT WINAPI WsWriteEndStartElement(WS_XML_WRITER*, WS_ERROR*);
1103 HRESULT WINAPI WsWriteMessageStart(WS_CHANNEL*, WS_MESSAGE*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
1104 HRESULT WINAPI WsWriteMessageEnd(WS_CHANNEL*, WS_MESSAGE*, const WS_ASYNC_CONTEXT*, WS_ERROR*);
1105 HRESULT WINAPI WsWriteStartAttribute(WS_XML_WRITER*, const WS_XML_STRING*, const WS_XML_STRING*,
1106 const WS_XML_STRING*, BOOL, WS_ERROR*);
1107 HRESULT WINAPI WsWriteStartCData(WS_XML_WRITER*, WS_ERROR*);
1108 HRESULT WINAPI WsWriteStartElement(WS_XML_WRITER*, const WS_XML_STRING*, const WS_XML_STRING*,
1109 const WS_XML_STRING*, WS_ERROR*);
1110 HRESULT WINAPI WsWriteText(WS_XML_WRITER*, const WS_XML_TEXT*, WS_ERROR*);
1111 HRESULT WINAPI WsWriteType(WS_XML_WRITER*, WS_TYPE_MAPPING, WS_TYPE, const void*, WS_WRITE_OPTION,
1112 const void*, ULONG, WS_ERROR*);
1113 HRESULT WINAPI WsWriteValue(WS_XML_WRITER*, WS_VALUE_TYPE, const void*, ULONG, WS_ERROR*);
1114 HRESULT WINAPI WsWriteXmlBuffer(WS_XML_WRITER*, WS_XML_BUFFER*, WS_ERROR*);
1115 HRESULT WINAPI WsWriteXmlBufferToBytes(WS_XML_WRITER*, WS_XML_BUFFER*, const WS_XML_WRITER_ENCODING*,
1116 const WS_XML_WRITER_PROPERTY*, ULONG, WS_HEAP*, void**,
1117 ULONG*, WS_ERROR*);
1118 HRESULT WINAPI WsWriteXmlnsAttribute(WS_XML_WRITER*, const WS_XML_STRING*, const WS_XML_STRING*,
1119 BOOL, WS_ERROR*);
1120 HRESULT WINAPI WsXmlStringEquals(const WS_XML_STRING*, const WS_XML_STRING*, WS_ERROR*);
1122 #define WS_S_ASYNC 0x003d0000
1123 #define WS_S_END 0x003d0001
1124 #define WS_E_INVALID_FORMAT 0x803d0000
1125 #define WS_E_OBJECT_FAULTED 0x803d0001
1126 #define WS_E_NUMERIC_OVERFLOW 0x803d0002
1127 #define WS_E_INVALID_OPERATION 0x803d0003
1128 #define WS_E_OPERATION_ABORTED 0x803d0004
1129 #define WS_E_ENDPOINT_ACCESS_DENIED 0x803d0005
1130 #define WS_E_OPERATION_TIMED_OUT 0x803d0006
1131 #define WS_E_OPERATION_ABANDONED 0x803d0007
1132 #define WS_E_QUOTA_EXCEEDED 0x803d0008
1133 #define WS_E_NO_TRANSLATION_AVAILABLE 0x803d0009
1134 #define WS_E_SECURITY_VERIFICATION_FAILURE 0x803d000a
1135 #define WS_E_ADDRESS_IN_USE 0x803d000b
1136 #define WS_E_ADDRESS_NOT_AVAILABLE 0x803d000c
1137 #define WS_E_ENDPOINT_NOT_FOUND 0x803d000d
1138 #define WS_E_ENDPOINT_NOT_AVAILABLE 0x803d000e
1139 #define WS_E_ENDPOINT_FAILURE 0x803d000f
1140 #define WS_E_ENDPOINT_UNREACHABLE 0x803d0010
1141 #define WS_E_ENDPOINT_ACTION_NOT_SUPPORTED 0x803d0011
1142 #define WS_E_ENDPOINT_TOO_BUSY 0x803d0012
1143 #define WS_E_ENDPOINT_FAULT_RECEIVED 0x803d0013
1144 #define WS_E_ENDPOINT_DISCONNECTED 0x803d0014
1145 #define WS_E_PROXY_FAILURE 0x803d0015
1146 #define WS_E_PROXY_ACCESS_DENIED 0x803d0016
1147 #define WS_E_NOT_SUPPORTED 0x803d0017
1148 #define WS_E_PROXY_REQUIRES_BASIC_AUTH 0x803d0018
1149 #define WS_E_PROXY_REQUIRES_DIGEST_AUTH 0x803d0019
1150 #define WS_E_PROXY_REQUIRES_NTLM_AUTH 0x803d001a
1151 #define WS_E_PROXY_REQUIRES_NEGOTIATE_AUTH 0x803d001b
1152 #define WS_E_SERVER_REQUIRES_BASIC_AUTH 0x803d001c
1153 #define WS_E_SERVER_REQUIRES_DIGEST_AUTH 0x803d001d
1154 #define WS_E_SERVER_REQUIRES_NTLM_AUTH 0x803d001e
1155 #define WS_E_SERVER_REQUIRES_NEGOTIATE_AUTH 0x803d001f
1156 #define WS_E_INVALID_ENDPOINT_URL 0x803d0020
1157 #define WS_E_OTHER 0x803d0021
1158 #define WS_E_SECURITY_TOKEN_EXPIRED 0x803d0022
1159 #define WS_E_SECURITY_SYSTEM_FAILURE 0x803d0023
1161 #ifdef __cplusplus
1163 #endif /* __cplusplus */
1165 #endif /* __WINE_WEBSERVICES_H */