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
;
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_XML_DATETIME_TEXT WS_XML_DATETIME_TEXT
;
62 typedef struct _WS_XML_BASE64_TEXT WS_XML_BASE64_TEXT
;
63 typedef struct _WS_DATETIME_DESCRIPTION WS_DATETIME_DESCRIPTION
;
64 typedef struct _WS_GUID_DESCRIPTION WS_GUID_DESCRIPTION
;
65 typedef struct _WS_UNIQUE_ID_DESCRIPTION WS_UNIQUE_ID_DESCRIPTION
;
66 typedef struct _WS_BYTES_DESCRIPTION WS_BYTES_DESCRIPTION
;
67 typedef struct _WS_URL WS_URL
;
68 typedef struct _WS_HTTP_URL WS_HTTP_URL
;
69 typedef struct _WS_HTTPS_URL WS_HTTPS_URL
;
70 typedef struct _WS_NETTCP_URL WS_NETTCP_URL
;
71 typedef struct _WS_SOAPUDP_URL WS_SOAPUDP_URL
;
72 typedef struct _WS_NETPIPE_URL WS_NETPIPE_URL
;
73 typedef struct _WS_CUSTOM_CHANNEL_CALLBACKS WS_CUSTOM_CHANNEL_CALLBACKS
;
74 typedef struct _WS_CHANNEL_ENCODER WS_CHANNEL_ENCODER
;
75 typedef struct _WS_CHANNEL_DECODER WS_CHANNEL_DECODER
;
76 typedef struct _WS_CUSTOM_HTTP_PROXY WS_CUSTOM_HTTP_PROXY
;
77 typedef struct _WS_HTTP_MESSAGE_MAPPING WS_HTTP_MESSAGE_MAPPING
;
78 typedef struct _WS_HTTP_HEADER_MAPPING WS_HTTP_HEADER_MAPPING
;
79 typedef struct _WS_HTTP_REDIRECT_CALLBACK_CONTEXT WS_HTTP_REDIRECT_CALLBACK_CONTEXT
;
80 typedef struct _WS_PROXY_MESSAGE_CALLBACK_CONTEXT WS_PROXY_MESSAGE_CALLBACK_CONTEXT
;
81 typedef struct _WS_LISTENER WS_LISTENER
;
82 typedef struct _WS_LISTENER_PROPERTY WS_LISTENER_PROPERTY
;
83 typedef struct _WS_DISALLOWED_USER_AGENT_SUBSTRINGS WS_DISALLOWED_USER_AGENT_SUBSTRINGS
;
84 typedef struct _WS_LISTENER_PROPERTIES WS_LISTENER_PROPERTIES
;
85 typedef struct _WS_CUSTOM_LISTENER_CALLBACKS WS_CUSTOM_LISTENER_CALLBACKS
;
87 struct _WS_STRUCT_DESCRIPTION
;
88 struct _WS_XML_STRING
;
91 WS_ERROR_PROPERTY_STRING_COUNT
,
92 WS_ERROR_PROPERTY_ORIGINAL_ERROR_CODE
,
93 WS_ERROR_PROPERTY_LANGID
94 } WS_ERROR_PROPERTY_ID
;
96 typedef struct _WS_ERROR_PROPERTY
{
97 WS_ERROR_PROPERTY_ID id
;
103 WS_HEAP_PROPERTY_MAX_SIZE
,
104 WS_HEAP_PROPERTY_TRIM_SIZE
,
105 WS_HEAP_PROPERTY_REQUESTED_SIZE
,
106 WS_HEAP_PROPERTY_ACTUAL_SIZE
107 } WS_HEAP_PROPERTY_ID
;
109 typedef struct _WS_HEAP_PROPERTY
{
110 WS_HEAP_PROPERTY_ID id
;
115 typedef ULONG WS_XML_BUFFER_PROPERTY_ID
;
117 typedef struct _WS_XML_BUFFER_PROPERTY
{
118 WS_XML_BUFFER_PROPERTY_ID id
;
121 } WS_XML_BUFFER_PROPERTY
;
124 WS_XML_READER_PROPERTY_MAX_DEPTH
,
125 WS_XML_READER_PROPERTY_ALLOW_FRAGMENT
,
126 WS_XML_READER_PROPERTY_MAX_ATTRIBUTES
,
127 WS_XML_READER_PROPERTY_READ_DECLARATION
,
128 WS_XML_READER_PROPERTY_CHARSET
,
129 WS_XML_READER_PROPERTY_ROW
,
130 WS_XML_READER_PROPERTY_COLUMN
,
131 WS_XML_READER_PROPERTY_UTF8_TRIM_SIZE
,
132 WS_XML_READER_PROPERTY_STREAM_BUFFER_SIZE
,
133 WS_XML_READER_PROPERTY_IN_ATTRIBUTE
,
134 WS_XML_READER_PROPERTY_STREAM_MAX_ROOT_MIME_PART_SIZE
,
135 WS_XML_READER_PROPERTY_STREAM_MAX_MIME_HEADERS_SIZE
,
136 WS_XML_READER_PROPERTY_MAX_MIME_PARTS
,
137 WS_XML_READER_PROPERTY_ALLOW_INVALID_CHARACTER_REFERENCES
,
138 WS_XML_READER_PROPERTY_MAX_NAMESPACES
139 } WS_XML_READER_PROPERTY_ID
;
141 typedef struct _WS_XML_READER_PROPERTY
{
142 WS_XML_READER_PROPERTY_ID id
;
145 } WS_XML_READER_PROPERTY
;
148 WS_XML_WRITER_PROPERTY_MAX_DEPTH
,
149 WS_XML_WRITER_PROPERTY_ALLOW_FRAGMENT
,
150 WS_XML_WRITER_PROPERTY_MAX_ATTRIBUTES
,
151 WS_XML_WRITER_PROPERTY_WRITE_DECLARATION
,
152 WS_XML_WRITER_PROPERTY_INDENT
,
153 WS_XML_WRITER_PROPERTY_BUFFER_TRIM_SIZE
,
154 WS_XML_WRITER_PROPERTY_CHARSET
,
155 WS_XML_WRITER_PROPERTY_BUFFERS
,
156 WS_XML_WRITER_PROPERTY_BUFFER_MAX_SIZE
,
157 WS_XML_WRITER_PROPERTY_BYTES
,
158 WS_XML_WRITER_PROPERTY_IN_ATTRIBUTE
,
159 WS_XML_WRITER_PROPERTY_MAX_MIME_PARTS_BUFFER_SIZE
,
160 WS_XML_WRITER_PROPERTY_INITIAL_BUFFER
,
161 WS_XML_WRITER_PROPERTY_ALLOW_INVALID_CHARACTER_REFERENCES
,
162 WS_XML_WRITER_PROPERTY_MAX_NAMESPACES
,
163 WS_XML_WRITER_PROPERTY_BYTES_WRITTEN
,
164 WS_XML_WRITER_PROPERTY_BYTES_TO_CLOSE
,
165 WS_XML_WRITER_PROPERTY_COMPRESS_EMPTY_ELEMENTS
,
166 WS_XML_WRITER_PROPERTY_EMIT_UNCOMPRESSED_EMPTY_ELEMENTS
167 } WS_XML_WRITER_PROPERTY_ID
;
169 typedef struct _WS_XML_WRITER_PROPERTY
{
170 WS_XML_WRITER_PROPERTY_ID id
;
173 } WS_XML_WRITER_PROPERTY
;
175 typedef struct _WS_BYTES
{
180 typedef struct _WS_BUFFERS
{
186 WS_XML_READER_ENCODING_TYPE_TEXT
= 1,
187 WS_XML_READER_ENCODING_TYPE_BINARY
= 2,
188 WS_XML_READER_ENCODING_TYPE_MTOM
= 3,
189 WS_XML_READER_ENCODING_TYPE_RAW
= 4
190 } WS_XML_READER_ENCODING_TYPE
;
192 typedef struct _WS_XML_READER_ENCODING
{
193 WS_XML_READER_ENCODING_TYPE encodingType
;
194 } WS_XML_READER_ENCODING
;
197 WS_XML_WRITER_ENCODING_TYPE_TEXT
= 1,
198 WS_XML_WRITER_ENCODING_TYPE_BINARY
= 2,
199 WS_XML_WRITER_ENCODING_TYPE_MTOM
= 3,
200 WS_XML_WRITER_ENCODING_TYPE_RAW
= 4
201 } WS_XML_WRITER_ENCODING_TYPE
;
203 typedef struct _WS_XML_WRITER_ENCODING
{
204 WS_XML_WRITER_ENCODING_TYPE encodingType
;
205 } WS_XML_WRITER_ENCODING
;
214 typedef struct _WS_XML_READER_TEXT_ENCODING
{
215 WS_XML_READER_ENCODING encoding
;
217 } WS_XML_READER_TEXT_ENCODING
;
219 typedef struct _WS_XML_WRITER_TEXT_ENCODING
{
220 WS_XML_WRITER_ENCODING encoding
;
222 } WS_XML_WRITER_TEXT_ENCODING
;
225 WS_XML_READER_INPUT_TYPE_BUFFER
= 1,
226 WS_XML_READER_INPUT_TYPE_STREAM
= 2
227 } WS_XML_READER_INPUT_TYPE
;
230 WS_XML_WRITER_OUTPUT_TYPE_BUFFER
= 1,
231 WS_XML_WRITER_OUTPUT_TYPE_STREAM
= 2
232 } WS_XML_WRITER_OUTPUT_TYPE
;
234 typedef struct _WS_XML_READER_INPUT
{
235 WS_XML_READER_INPUT_TYPE inputType
;
236 } WS_XML_READER_INPUT
;
238 typedef struct _WS_XML_WRITER_OUTPUT
{
239 WS_XML_WRITER_OUTPUT_TYPE outputType
;
240 } WS_XML_WRITER_OUTPUT
;
242 typedef struct _WS_XML_READER_BUFFER_INPUT
{
243 WS_XML_READER_INPUT input
;
245 ULONG encodedDataSize
;
246 } WS_XML_READER_BUFFER_INPUT
;
248 typedef struct _WS_XML_WRITER_BUFFER_OUTPUT
{
249 WS_XML_WRITER_OUTPUT output
;
250 } WS_XML_WRITER_BUFFER_OUTPUT
;
257 typedef void (CALLBACK
*WS_ASYNC_CALLBACK
)
258 (HRESULT
, WS_CALLBACK_MODEL
, void *);
260 typedef struct _WS_ASYNC_CONTEXT
{
261 WS_ASYNC_CALLBACK callback
;
265 typedef HRESULT (CALLBACK
*WS_READ_CALLBACK
)
266 (void*, void*, ULONG
, ULONG
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
268 typedef HRESULT (CALLBACK
*WS_WRITE_CALLBACK
)
269 (void*, const WS_BYTES
*, ULONG
, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
271 typedef struct _WS_XML_READER_STREAM_INPUT
{
272 WS_XML_READER_INPUT input
;
273 WS_READ_CALLBACK readCallback
;
274 void *readCallbackState
;
275 } WS_XML_READER_STREAM_INPUT
;
277 typedef struct _WS_XML_DICTIONARY
{
279 struct _WS_XML_STRING
*strings
;
284 typedef struct _WS_XML_STRING
{
287 WS_XML_DICTIONARY
*dictionary
;
292 WS_ELEMENT_TYPE_MAPPING
= 1,
293 WS_ATTRIBUTE_TYPE_MAPPING
= 2,
294 WS_ELEMENT_CONTENT_TYPE_MAPPING
= 3,
295 WS_ANY_ELEMENT_TYPE_MAPPING
= 4
327 WS_ENDPOINT_ADDRESS_TYPE
,
333 WS_ANY_ATTRIBUTES_TYPE
337 WS_READ_REQUIRED_VALUE
= 1,
338 WS_READ_REQUIRED_POINTER
= 2,
339 WS_READ_OPTIONAL_POINTER
= 3,
340 WS_READ_NILLABLE_POINTER
= 4,
341 WS_READ_NILLABLE_VALUE
= 5
345 WS_WRITE_REQUIRED_VALUE
= 1,
346 WS_WRITE_REQUIRED_POINTER
= 2,
347 WS_WRITE_NILLABLE_VALUE
= 3,
348 WS_WRITE_NILLABLE_POINTER
= 4
351 typedef struct _WS_BOOL_DESCRIPTION
{
353 } WS_BOOL_DESCRIPTION
;
355 typedef struct _WS_INT8_DESCRIPTION
{
358 } WS_INT8_DESCRIPTION
;
360 typedef struct _WS_INT16_DESCRIPTION
{
363 } WS_INT16_DESCRIPTION
;
365 typedef struct _WS_INT32_DESCRIPTION
{
368 } WS_INT32_DESCRIPTION
;
370 typedef struct _WS_INT64_DESCRIPTION
{
371 __int64
DECLSPEC_ALIGN(8) minValue
;
372 __int64
DECLSPEC_ALIGN(8) maxValue
;
373 } WS_INT64_DESCRIPTION
;
375 typedef struct _WS_UINT8_DESCRIPTION
{
378 } WS_UINT8_DESCRIPTION
;
380 typedef struct _WS_UINT16_DESCRIPTION
{
383 } WS_UINT16_DESCRIPTION
;
385 typedef struct _WS_UINT32_DESCRIPTION
{
388 } WS_UINT32_DESCRIPTION
;
390 typedef struct _WS_UINT64_DESCRIPTION
{
391 unsigned __int64
DECLSPEC_ALIGN(8) minValue
;
392 unsigned __int64
DECLSPEC_ALIGN(8) maxValue
;
393 } WS_UINT64_DESCRIPTION
;
395 typedef struct _WS_WSZ_DESCRIPTION
{
398 } WS_WSZ_DESCRIPTION
;
400 typedef struct _WS_STRING_DESCRIPTION
{
403 } WS_STRING_DESCRIPTION
;
405 typedef struct _WS_XML_STRING_DESCRIPTION
{
408 } WS_XML_STRING_DESCRIPTION
;
410 struct _WS_ENUM_VALUE
{
415 struct _WS_ENUM_DESCRIPTION
{
416 WS_ENUM_VALUE
*values
;
422 struct _WS_DOUBLE_DESCRIPTION
{
423 double DECLSPEC_ALIGN(8) minValue
;
424 double DECLSPEC_ALIGN(8) maxValue
;
427 struct _WS_GUID_DESCRIPTION
{
431 struct _WS_UNIQUE_ID_DESCRIPTION
{
436 struct _WS_BYTES_DESCRIPTION
{
442 WS_TYPE_ATTRIBUTE_FIELD_MAPPING
,
443 WS_ATTRIBUTE_FIELD_MAPPING
,
444 WS_ELEMENT_FIELD_MAPPING
,
445 WS_REPEATING_ELEMENT_FIELD_MAPPING
,
446 WS_TEXT_FIELD_MAPPING
,
448 WS_XML_ATTRIBUTE_FIELD_MAPPING
,
449 WS_ELEMENT_CHOICE_FIELD_MAPPING
,
450 WS_REPEATING_ELEMENT_CHOICE_FIELD_MAPPING
,
451 WS_ANY_ELEMENT_FIELD_MAPPING
,
452 WS_REPEATING_ANY_ELEMENT_FIELD_MAPPING
,
453 WS_ANY_CONTENT_FIELD_MAPPING
,
454 WS_ANY_ATTRIBUTES_FIELD_MAPPING
457 typedef struct _WS_DEFAULT_VALUE
{
462 typedef struct _WS_ITEM_RANGE
{
469 WS_FIELD_POINTER
= 0x1,
470 WS_FIELD_OPTIONAL
= 0x2,
471 WS_FIELD_NILLABLE
= 0x4,
472 WS_FIELD_NILLABLE_ITEM
= 0x8,
473 WS_FIELD_OTHER_NAMESPACE
= 0x10
476 typedef struct _WS_FIELD_DESCRIPTION
{
477 WS_FIELD_MAPPING mapping
;
478 WS_XML_STRING
*localName
;
481 void *typeDescription
;
484 WS_DEFAULT_VALUE
*defaultValue
;
486 WS_XML_STRING
*itemLocalName
;
487 WS_XML_STRING
*itemNs
;
488 WS_ITEM_RANGE
*itemRange
;
489 } WS_FIELD_DESCRIPTION
;
493 WS_STRUCT_ABSTRACT
= 0x1,
494 WS_STRUCT_IGNORE_TRAILING_ELEMENT_CONTENT
= 0x2,
495 WS_STRUCT_IGNORE_UNHANDLED_ATTRIBUTES
= 0x4
498 typedef struct _WS_STRUCT_DESCRIPTION
{
501 WS_FIELD_DESCRIPTION
**fields
;
503 WS_XML_STRING
*typeLocalName
;
504 WS_XML_STRING
*typeNs
;
505 struct _WS_STRUCT_DESCRIPTION
*parentType
;
506 struct _WS_STRUCT_DESCRIPTION
**subTypes
;
509 } WS_STRUCT_DESCRIPTION
;
511 typedef struct _WS_ATTRIBUTE_DESCRIPTION
{
512 WS_XML_STRING
*attributeLocalName
;
513 WS_XML_STRING
*attributeNs
;
515 void *typeDescription
;
516 } WS_ATTRIBUTE_DESCRIPTION
;
518 typedef struct _WS_ELEMENT_DESCRIPTION
{
519 WS_XML_STRING
*elementLocalName
;
520 WS_XML_STRING
*elementNs
;
522 void *typeDescription
;
523 } WS_ELEMENT_DESCRIPTION
;
525 typedef struct _WS_STRING
{
530 typedef struct _WS_UNIQUE_ID
{
536 WS_XML_NODE_TYPE_ELEMENT
= 1,
537 WS_XML_NODE_TYPE_TEXT
= 2,
538 WS_XML_NODE_TYPE_END_ELEMENT
= 3,
539 WS_XML_NODE_TYPE_COMMENT
= 4,
540 WS_XML_NODE_TYPE_CDATA
= 6,
541 WS_XML_NODE_TYPE_END_CDATA
= 7,
542 WS_XML_NODE_TYPE_EOF
= 8,
543 WS_XML_NODE_TYPE_BOF
= 9
546 typedef struct _WS_XML_NODE
{
547 WS_XML_NODE_TYPE nodeType
;
551 WS_MOVE_TO_ROOT_ELEMENT
,
552 WS_MOVE_TO_NEXT_ELEMENT
,
553 WS_MOVE_TO_PREVIOUS_ELEMENT
,
554 WS_MOVE_TO_CHILD_ELEMENT
,
555 WS_MOVE_TO_END_ELEMENT
,
556 WS_MOVE_TO_PARENT_ELEMENT
,
557 WS_MOVE_TO_NEXT_NODE
,
558 WS_MOVE_TO_PREVIOUS_NODE
,
559 WS_MOVE_TO_FIRST_NODE
,
562 WS_MOVE_TO_CHILD_NODE
566 WS_XML_TEXT_TYPE_UTF8
= 1,
567 WS_XML_TEXT_TYPE_UTF16
= 2,
568 WS_XML_TEXT_TYPE_BASE64
= 3,
569 WS_XML_TEXT_TYPE_BOOL
= 4,
570 WS_XML_TEXT_TYPE_INT32
= 5,
571 WS_XML_TEXT_TYPE_INT64
= 6,
572 WS_XML_TEXT_TYPE_UINT64
= 7,
573 WS_XML_TEXT_TYPE_FLOAT
= 8,
574 WS_XML_TEXT_TYPE_DOUBLE
= 9,
575 WS_XML_TEXT_TYPE_DECIMAL
= 10,
576 WS_XML_TEXT_TYPE_GUID
= 11,
577 WS_XML_TEXT_TYPE_UNIQUE_ID
= 12,
578 WS_XML_TEXT_TYPE_DATETIME
= 13,
579 WS_XML_TEXT_TYPE_TIMESPAN
= 14,
580 WS_XML_TEXT_TYPE_QNAME
= 15,
581 WS_XML_TEXT_TYPE_LIST
= 16
584 typedef struct _WS_XML_TEXT
{
585 WS_XML_TEXT_TYPE textType
;
588 typedef struct _WS_XML_UTF8_TEXT
{
593 typedef struct _WS_XML_UTF16_TEXT
{
599 typedef struct _WS_XML_BOOL_TEXT
{
604 typedef struct _WS_XML_INT32_TEXT
{
609 typedef struct _WS_XML_INT64_TEXT
{
611 __int64
DECLSPEC_ALIGN(8) value
;
614 typedef struct _WS_XML_UINT64_TEXT
{
616 unsigned __int64
DECLSPEC_ALIGN(8) value
;
617 } WS_XML_UINT64_TEXT
;
619 typedef struct _WS_XML_DOUBLE_TEXT
{
621 double DECLSPEC_ALIGN(8) value
;
622 } WS_XML_DOUBLE_TEXT
;
624 typedef struct _WS_XML_GUID_TEXT
{
629 typedef struct _WS_XML_UNIQUE_ID_TEXT
{
632 } WS_XML_UNIQUE_ID_TEXT
;
641 WS_UINT16_VALUE_TYPE
,
642 WS_UINT32_VALUE_TYPE
,
643 WS_UINT64_VALUE_TYPE
,
645 WS_DOUBLE_VALUE_TYPE
,
646 WS_DECIMAL_VALUE_TYPE
,
647 WS_DATETIME_VALUE_TYPE
,
648 WS_TIMESPAN_VALUE_TYPE
,
650 WS_DURATION_VALUE_TYPE
653 typedef struct _WS_XML_ATTRIBUTE
{
656 WS_XML_STRING
*prefix
;
657 WS_XML_STRING
*localName
;
662 typedef struct _WS_XML_ELEMENT_NODE
{
664 WS_XML_STRING
*prefix
;
665 WS_XML_STRING
*localName
;
667 ULONG attributeCount
;
668 WS_XML_ATTRIBUTE
**attributes
;
670 } WS_XML_ELEMENT_NODE
;
672 typedef struct _WS_XML_TEXT_NODE
{
677 typedef struct _WS_XML_COMMENT_NODE
{
680 } WS_XML_COMMENT_NODE
;
682 typedef struct _WS_XML_NODE_POSITION
{
683 WS_XML_BUFFER
*buffer
;
685 } WS_XML_NODE_POSITION
;
688 WS_SERVICE_PROXY_STATE_CREATED
,
689 WS_SERVICE_PROXY_STATE_OPENING
,
690 WS_SERVICE_PROXY_STATE_OPEN
,
691 WS_SERVICE_PROXY_STATE_CLOSING
,
692 WS_SERVICE_PROXY_STATE_CLOSED
,
693 WS_SERVICE_PROXY_STATE_FAULTED
694 } WS_SERVICE_PROXY_STATE
;
697 WS_PROXY_PROPERTY_CALL_TIMEOUT
,
698 WS_PROXY_PROPERTY_MESSAGE_PROPERTIES
,
699 WS_PROXY_PROPERTY_MAX_CALL_POOL_SIZE
,
700 WS_PROXY_PROPERTY_STATE
,
701 WS_PROXY_PROPERTY_MAX_PENDING_CALLS
,
702 WS_PROXY_PROPERTY_MAX_CLOSE_TIMEOUT
,
703 WS_PROXY_FAULT_LANG_ID
704 } WS_PROXY_PROPERTY_ID
;
706 struct _WS_PROXY_PROPERTY
{
707 WS_PROXY_PROPERTY_ID id
;
713 WS_CHANNEL_TYPE_INPUT
= 0x1,
714 WS_CHANNEL_TYPE_OUTPUT
= 0x2,
715 WS_CHANNEL_TYPE_SESSION
= 0x4,
716 WS_CHANNEL_TYPE_INPUT_SESSION
= (WS_CHANNEL_TYPE_INPUT
| WS_CHANNEL_TYPE_SESSION
),
717 WS_CHANNEL_TYPE_OUTPUT_SESSION
= (WS_CHANNEL_TYPE_OUTPUT
| WS_CHANNEL_TYPE_SESSION
),
718 WS_CHANNEL_TYPE_DUPLEX
= (WS_CHANNEL_TYPE_INPUT
| WS_CHANNEL_TYPE_OUTPUT
),
719 WS_CHANNEL_TYPE_DUPLEX_SESSION
= (WS_CHANNEL_TYPE_INPUT
| WS_CHANNEL_TYPE_OUTPUT
| WS_CHANNEL_TYPE_SESSION
),
720 WS_CHANNEL_TYPE_REQUEST
= 0x8,
721 WS_CHANNEL_TYPE_REPLY
= 0x10
725 WS_ENCODING_XML_BINARY_1
,
726 WS_ENCODING_XML_BINARY_SESSION_1
,
727 WS_ENCODING_XML_MTOM_UTF8
,
728 WS_ENCODING_XML_MTOM_UTF16BE
,
729 WS_ENCODING_XML_MTOM_UTF16LE
,
730 WS_ENCODING_XML_UTF8
,
731 WS_ENCODING_XML_UTF16BE
,
732 WS_ENCODING_XML_UTF16LE
,
737 WS_CHANNEL_STATE_CREATED
,
738 WS_CHANNEL_STATE_OPENING
,
739 WS_CHANNEL_STATE_ACCEPTING
,
740 WS_CHANNEL_STATE_OPEN
,
741 WS_CHANNEL_STATE_FAULTED
,
742 WS_CHANNEL_STATE_CLOSING
,
743 WS_CHANNEL_STATE_CLOSED
747 WS_CHANNEL_PROPERTY_MAX_BUFFERED_MESSAGE_SIZE
= 0,
748 WS_CHANNEL_PROPERTY_MAX_STREAMED_MESSAGE_SIZE
= 1,
749 WS_CHANNEL_PROPERTY_MAX_STREAMED_START_SIZE
= 2,
750 WS_CHANNEL_PROPERTY_MAX_STREAMED_FLUSH_SIZE
= 3,
751 WS_CHANNEL_PROPERTY_ENCODING
= 4,
752 WS_CHANNEL_PROPERTY_ENVELOPE_VERSION
= 5,
753 WS_CHANNEL_PROPERTY_ADDRESSING_VERSION
= 6,
754 WS_CHANNEL_PROPERTY_MAX_SESSION_DICTIONARY_SIZE
= 7,
755 WS_CHANNEL_PROPERTY_STATE
= 8,
756 WS_CHANNEL_PROPERTY_ASYNC_CALLBACK_MODEL
= 9,
757 WS_CHANNEL_PROPERTY_IP_VERSION
= 10,
758 WS_CHANNEL_PROPERTY_RESOLVE_TIMEOUT
= 11,
759 WS_CHANNEL_PROPERTY_CONNECT_TIMEOUT
= 12,
760 WS_CHANNEL_PROPERTY_SEND_TIMEOUT
= 13,
761 WS_CHANNEL_PROPERTY_RECEIVE_RESPONSE_TIMEOUT
= 14,
762 WS_CHANNEL_PROPERTY_RECEIVE_TIMEOUT
= 15,
763 WS_CHANNEL_PROPERTY_CLOSE_TIMEOUT
= 16,
764 WS_CHANNEL_PROPERTY_ENABLE_TIMEOUTS
= 17,
765 WS_CHANNEL_PROPERTY_TRANSFER_MODE
= 18,
766 WS_CHANNEL_PROPERTY_MULTICAST_INTERFACE
= 19,
767 WS_CHANNEL_PROPERTY_MULTICAST_HOPS
= 20,
768 WS_CHANNEL_PROPERTY_REMOTE_ADDRESS
= 21,
769 WS_CHANNEL_PROPERTY_REMOTE_IP_ADDRESS
= 22,
770 WS_CHANNEL_PROPERTY_HTTP_CONNECTION_ID
= 23,
771 WS_CHANNEL_PROPERTY_CUSTOM_CHANNEL_CALLBACKS
= 24,
772 WS_CHANNEL_PROPERTY_CUSTOM_CHANNEL_PARAMETERS
= 25,
773 WS_CHANNEL_PROPERTY_CUSTOM_CHANNEL_INSTANCE
= 26,
774 WS_CHANNEL_PROPERTY_TRANSPORT_URL
= 27,
775 WS_CHANNEL_PROPERTY_NO_DELAY
= 28,
776 WS_CHANNEL_PROPERTY_SEND_KEEP_ALIVES
= 29,
777 WS_CHANNEL_PROPERTY_KEEP_ALIVE_TIME
= 30,
778 WS_CHANNEL_PROPERTY_KEEP_ALIVE_INTERVAL
= 31,
779 WS_CHANNEL_PROPERTY_MAX_HTTP_SERVER_CONNECTIONS
= 32,
780 WS_CHANNEL_PROPERTY_IS_SESSION_SHUT_DOWN
= 33,
781 WS_CHANNEL_PROPERTY_CHANNEL_TYPE
= 34,
782 WS_CHANNEL_PROPERTY_TRIM_BUFFERED_MESSAGE_SIZE
= 35,
783 WS_CHANNEL_PROPERTY_ENCODER
= 36,
784 WS_CHANNEL_PROPERTY_DECODER
= 37,
785 WS_CHANNEL_PROPERTY_PROTECTION_LEVEL
= 38,
786 WS_CHANNEL_PROPERTY_COOKIE_MODE
= 39,
787 WS_CHANNEL_PROPERTY_HTTP_PROXY_SETTING_MODE
= 40,
788 WS_CHANNEL_PROPERTY_CUSTOM_HTTP_PROXY
= 41,
789 WS_CHANNEL_PROPERTY_HTTP_MESSAGE_MAPPING
= 42,
790 WS_CHANNEL_PROPERTY_ENABLE_HTTP_REDIRECT
= 43,
791 WS_CHANNEL_PROPERTY_HTTP_REDIRECT_CALLBACK_CONTEXT
= 44,
792 WS_CHANNEL_PROPERTY_FAULTS_AS_ERRORS
= 45,
793 WS_CHANNEL_PROPERTY_ALLOW_UNSECURED_FAULTS
= 46,
794 WS_CHANNEL_PROPERTY_HTTP_SERVER_SPN
= 47,
795 WS_CHANNEL_PROPERTY_HTTP_PROXY_SPN
= 48,
796 WS_CHANNEL_PROPERTY_MAX_HTTP_REQUEST_HEADERS_BUFFER_SIZE
= 49
797 } WS_CHANNEL_PROPERTY_ID
;
799 struct _WS_CHANNEL_PROPERTY
{
800 WS_CHANNEL_PROPERTY_ID id
;
805 struct _WS_CHANNEL_PROPERTIES
{
806 WS_CHANNEL_PROPERTY
*properties
;
811 WS_HTTP_CHANNEL_BINDING
,
812 WS_TCP_CHANNEL_BINDING
,
813 WS_UDP_CHANNEL_BINDING
,
814 WS_CUSTOM_CHANNEL_BINDING
,
815 WS_NAMEDPIPE_CHANNEL_BINDING
816 } WS_CHANNEL_BINDING
;
819 WS_SSL_TRANSPORT_SECURITY_BINDING_TYPE
,
820 WS_TCP_SSPI_TRANSPORT_SECURITY_BINDING_TYPE
,
821 WS_HTTP_HEADER_AUTH_SECURITY_BINDING_TYPE
,
822 WS_USERNAME_MESSAGE_SECURITY_BINDING_TYPE
,
823 WS_KERBEROS_APREQ_MESSAGE_SECURITY_BINDING_TYPE
,
824 WS_XML_TOKEN_MESSAGE_SECURITY_BINDING_TYPE
,
825 WS_SAML_MESSAGE_SECURITY_BINDING_TYPE
,
826 WS_SECURITY_CONTEXT_MESSAGE_SECURITY_BINDING_TYPE
,
827 WS_NAMEDPIPE_SSPI_TRANSPORT_SECURITY_BINDING_TYPE
828 } WS_SECURITY_BINDING_TYPE
;
831 WS_SECURITY_BINDING_PROPERTY_REQUIRE_SSL_CLIENT_CERT
= 1,
832 WS_SECURITY_BINDING_PROPERTY_WINDOWS_INTEGRATED_AUTH_PACKAGE
= 2,
833 WS_SECURITY_BINDING_PROPERTY_REQUIRE_SERVER_AUTH
= 3,
834 WS_SECURITY_BINDING_PROPERTY_ALLOW_ANONYMOUS_CLIENTS
= 4,
835 WS_SECURITY_BINDING_PROPERTY_ALLOWED_IMPERSONATION_LEVEL
= 5,
836 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_SCHEME
= 6,
837 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_TARGET
= 7,
838 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_BASIC_REALM
= 8,
839 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_DIGEST_REALM
= 9,
840 WS_SECURITY_BINDING_PROPERTY_HTTP_HEADER_AUTH_DIGEST_DOMAIN
= 10,
841 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_KEY_SIZE
= 11,
842 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_KEY_ENTROPY_MODE
= 12,
843 WS_SECURITY_BINDING_PROPERTY_MESSAGE_PROPERTIES
= 13,
844 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_MAX_PENDING_CONTEXTS
= 14,
845 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_MAX_ACTIVE_CONTEXTS
= 15,
846 WS_SECURITY_BINDING_PROPERTY_SECURE_CONVERSATION_VERSION
= 16,
847 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_SUPPORT_RENEW
= 17,
848 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_RENEWAL_INTERVAL
= 18,
849 WS_SECURITY_BINDING_PROPERTY_SECURITY_CONTEXT_ROLLOVER_INTERVAL
= 19,
850 WS_SECURITY_BINDING_PROPERTY_CERT_FAILURES_TO_IGNORE
= 20,
851 WS_SECURITY_BINDING_PROPERTY_DISABLE_CERT_REVOCATION_CHECK
= 21,
852 WS_SECURITY_BINDING_PROPERTY_DISALLOWED_SECURE_PROTOCOLS
= 22,
853 WS_SECURITY_BINDING_PROPERTY_CERTIFICATE_VALIDATION_CALLBACK_CONTEXT
= 23
854 } WS_SECURITY_BINDING_PROPERTY_ID
;
856 struct _WS_SECURITY_BINDING_PROPERTY
{
857 WS_SECURITY_BINDING_PROPERTY_ID id
;
862 struct _WS_SECURITY_BINDING_PROPERTIES
{
863 WS_SECURITY_BINDING_PROPERTY
*properties
;
867 struct _WS_SECURITY_BINDING
{
868 WS_SECURITY_BINDING_TYPE bindingType
;
869 WS_SECURITY_BINDING_PROPERTY
*properties
;
874 WS_SECURITY_PROPERTY_TRANSPORT_PROTECTION_LEVEL
= 1,
875 WS_SECURITY_PROPERTY_ALGORITHM_SUITE
= 2,
876 WS_SECURITY_PROPERTY_ALGORITHM_SUITE_NAME
= 3,
877 WS_SECURITY_PROPERTY_MAX_ALLOWED_LATENCY
= 4,
878 WS_SECURITY_PROPERTY_TIMESTAMP_VALIDITY_DURATION
= 5,
879 WS_SECURITY_PROPERTY_MAX_ALLOWED_CLOCK_SKEW
= 6,
880 WS_SECURITY_PROPERTY_TIMESTAMP_USAGE
= 7,
881 WS_SECURITY_PROPERTY_SECURITY_HEADER_LAYOUT
= 8,
882 WS_SECURITY_PROPERTY_SECURITY_HEADER_VERSION
= 9,
883 WS_SECURITY_PROPERTY_EXTENDED_PROTECTION_POLICY
= 10,
884 WS_SECURITY_PROPERTY_EXTENDED_PROTECTION_SCENARIO
= 11,
885 WS_SECURITY_PROPERTY_SERVICE_IDENTITIES
= 12
886 } WS_SECURITY_PROPERTY_ID
;
888 struct _WS_SECURITY_PROPERTY
{
889 WS_SECURITY_PROPERTY_ID id
;
894 struct _WS_SECURITY_PROPERTIES
{
895 WS_SECURITY_PROPERTY
*properties
;
899 struct _WS_SECURITY_DESCRIPTION
{
900 WS_SECURITY_BINDING
**securityBindings
;
901 ULONG securityBindingCount
;
902 WS_SECURITY_PROPERTY
*properties
;
907 WS_HTTP_BINDING_TEMPLATE_TYPE
,
908 WS_HTTP_SSL_BINDING_TEMPLATE_TYPE
,
909 WS_HTTP_HEADER_AUTH_BINDING_TEMPLATE_TYPE
,
910 WS_HTTP_SSL_HEADER_AUTH_BINDING_TEMPLATE_TYPE
,
911 WS_HTTP_SSL_USERNAME_BINDING_TEMPLATE_TYPE
,
912 WS_HTTP_SSL_KERBEROS_APREQ_BINDING_TEMPLATE_TYPE
,
913 WS_TCP_BINDING_TEMPLATE_TYPE
,
914 WS_TCP_SSPI_BINDING_TEMPLATE_TYPE
,
915 WS_TCP_SSPI_USERNAME_BINDING_TEMPLATE_TYPE
,
916 WS_TCP_SSPI_KERBEROS_APREQ_BINDING_TEMPLATE_TYPE
,
917 WS_HTTP_SSL_USERNAME_SECURITY_CONTEXT_BINDING_TEMPLATE_TYPE
,
918 WS_HTTP_SSL_KERBEROS_APREQ_SECURITY_CONTEXT_BINDING_TEMPLATE_TYPE
,
919 WS_TCP_SSPI_USERNAME_SECURITY_CONTEXT_BINDING_TEMPLATE_TYPE
,
920 WS_TCP_SSPI_KERBEROS_APREQ_SECURITY_CONTEXT_BINDING_TEMPLATE_TYPE
921 } WS_BINDING_TEMPLATE_TYPE
;
924 WS_SUBJECT_NAME_CERT_CREDENTIAL_TYPE
= 1,
925 WS_THUMBPRINT_CERT_CREDENTIAL_TYPE
= 2,
926 WS_CUSTOM_CERT_CREDENTIAL_TYPE
= 3
927 } WS_CERT_CREDENTIAL_TYPE
;
929 struct _WS_CERT_CREDENTIAL
{
930 WS_CERT_CREDENTIAL_TYPE credentialType
;
933 struct _WS_SSL_TRANSPORT_SECURITY_BINDING_TEMPLATE
{
934 WS_SECURITY_BINDING_PROPERTIES securityBindingProperties
;
935 WS_CERT_CREDENTIAL
*localCertCredential
;
938 struct _WS_HTTP_BINDING_TEMPLATE
{
939 WS_CHANNEL_PROPERTIES channelProperties
;
942 struct _WS_HTTP_SSL_BINDING_TEMPLATE
{
943 WS_CHANNEL_PROPERTIES channelProperties
;
944 WS_SECURITY_PROPERTIES securityProperties
;
945 WS_SSL_TRANSPORT_SECURITY_BINDING_TEMPLATE sslTransportSecurityBinding
;
949 WS_MUST_UNDERSTAND_HEADER_ATTRIBUTE
= 0x1,
950 WS_RELAY_HEADER_ATTRIBUTE
= 0x2
954 WS_ADDRESSING_VERSION_0_9
= 1,
955 WS_ADDRESSING_VERSION_1_0
= 2,
956 WS_ADDRESSING_VERSION_TRANSPORT
= 3
957 } WS_ADDRESSING_VERSION
;
960 WS_ENVELOPE_VERSION_SOAP_1_1
= 1,
961 WS_ENVELOPE_VERSION_SOAP_1_2
= 2,
962 WS_ENVELOPE_VERSION_NONE
= 3
963 } WS_ENVELOPE_VERSION
;
966 WS_MESSAGE_PROPERTY_STATE
,
967 WS_MESSAGE_PROPERTY_HEAP
,
968 WS_MESSAGE_PROPERTY_ENVELOPE_VERSION
,
969 WS_MESSAGE_PROPERTY_ADDRESSING_VERSION
,
970 WS_MESSAGE_PROPERTY_HEADER_BUFFER
,
971 WS_MESSAGE_PROPERTY_HEADER_POSITION
,
972 WS_MESSAGE_PROPERTY_BODY_READER
,
973 WS_MESSAGE_PROPERTY_BODY_WRITER
,
974 WS_MESSAGE_PROPERTY_IS_ADDRESSED
,
975 WS_MESSAGE_PROPERTY_HEAP_PROPERTIES
,
976 WS_MESSAGE_PROPERTY_XML_READER_PROPERTIES
,
977 WS_MESSAGE_PROPERTY_XML_WRITER_PROPERTIES
,
978 WS_MESSAGE_PROPERTY_IS_FAULT
,
979 WS_MESSAGE_PROPERTY_MAX_PROCESSED_HEADERS
,
980 WS_MESSAGE_PROPERTY_USERNAME
,
981 WS_MESSAGE_PROPERTY_ENCODED_CERT
,
982 WS_MESSAGE_PROPERTY_TRANSPORT_SECURITY_WINDOWS_TOKEN
,
983 WS_MESSAGE_PROPERTY_HTTP_HEADER_AUTH_WINDOWS_TOKEN
,
984 WS_MESSAGE_PROPERTY_MESSAGE_SECURITY_WINDOWS_TOKEN
,
985 WS_MESSAGE_PROPERTY_SAML_ASSERTION
,
986 WS_MESSAGE_PROPERTY_SECURITY_CONTEXT
,
987 WS_MESSAGE_PROPERTY_PROTECTION_LEVEL
988 } WS_MESSAGE_PROPERTY_ID
;
990 struct _WS_MESSAGE_PROPERTY
{
991 WS_MESSAGE_PROPERTY_ID id
;
996 struct _WS_MESSAGE_PROPERTIES
{
997 WS_MESSAGE_PROPERTY
*properties
;
1002 WS_MESSAGE_STATE_EMPTY
= 1,
1003 WS_MESSAGE_STATE_INITIALIZED
= 2,
1004 WS_MESSAGE_STATE_READING
= 3,
1005 WS_MESSAGE_STATE_WRITING
= 4,
1006 WS_MESSAGE_STATE_DONE
= 5
1011 WS_DUPLICATE_MESSAGE
,
1015 } WS_MESSAGE_INITIALIZATION
;
1018 WS_ACTION_HEADER
= 1,
1020 WS_MESSAGE_ID_HEADER
= 3,
1021 WS_RELATES_TO_HEADER
= 4,
1023 WS_REPLY_TO_HEADER
= 6,
1024 WS_FAULT_TO_HEADER
= 7
1028 WS_DNS_ENDPOINT_IDENTITY_TYPE
= 1,
1029 WS_UPN_ENDPOINT_IDENTITY_TYPE
= 2,
1030 WS_SPN_ENDPOINT_IDENTITY_TYPE
= 3,
1031 WS_RSA_ENDPOINT_IDENTITY_TYPE
= 4,
1032 WS_CERT_ENDPOINT_IDENTITY_TYPE
= 5,
1033 WS_UNKNOWN_ENDPOINT_IDENTITY_TYPE
= 6
1034 } WS_ENDPOINT_IDENTITY_TYPE
;
1036 struct _WS_ENDPOINT_IDENTITY
{
1037 WS_ENDPOINT_IDENTITY_TYPE identityType
;
1040 struct _WS_ENDPOINT_ADDRESS
{
1042 WS_XML_BUFFER
*headers
;
1043 WS_XML_BUFFER
*extensions
;
1044 WS_ENDPOINT_IDENTITY
*identity
;
1047 struct _WS_HTTP_POLICY_DESCRIPTION
{
1048 WS_CHANNEL_PROPERTIES channelProperties
;
1051 struct _WS_MESSAGE_DESCRIPTION
{
1052 WS_XML_STRING
*action
;
1053 WS_ELEMENT_DESCRIPTION
*bodyElementDescription
;
1057 WS_PARAMETER_TYPE_NORMAL
,
1058 WS_PARAMETER_TYPE_ARRAY
,
1059 WS_PARAMETER_TYPE_ARRAY_COUNT
,
1060 WS_PARAMETER_TYPE_MESSAGES
1061 } WS_PARAMETER_TYPE
;
1063 struct _WS_PARAMETER_DESCRIPTION
{
1064 WS_PARAMETER_TYPE parameterType
;
1065 USHORT inputMessageIndex
;
1066 USHORT outputMessageIndex
;
1069 typedef HRESULT (CALLBACK
*WS_SERVICE_STUB_CALLBACK
)(
1070 const WS_OPERATION_CONTEXT
*context
,
1072 const void *callback
,
1073 const WS_ASYNC_CONTEXT
*asyncContext
,
1077 WS_NON_RPC_LITERAL_OPERATION
,
1078 WS_RPC_LITERAL_OPERATION
1079 } WS_OPERATION_STYLE
;
1081 struct _WS_OPERATION_DESCRIPTION
{
1083 WS_MESSAGE_DESCRIPTION
*inputMessageDescription
;
1084 WS_MESSAGE_DESCRIPTION
*outputMessageDescription
;
1085 ULONG inputMessageOptions
;
1086 ULONG outputMessageOptions
;
1087 USHORT parameterCount
;
1088 WS_PARAMETER_DESCRIPTION
*parameterDescription
;
1089 WS_SERVICE_STUB_CALLBACK stubCallback
;
1090 WS_OPERATION_STYLE style
;
1094 WS_CALL_PROPERTY_CHECK_MUST_UNDERSTAND
,
1095 WS_CALL_PROPERTY_SEND_MESSAGE_CONTEXT
,
1096 WS_CALL_PROPERTY_RECEIVE_MESSAGE_CONTEXT
,
1097 WS_CALL_PROPERTY_CALL_ID
1098 } WS_CALL_PROPERTY_ID
;
1100 struct _WS_CALL_PROPERTY
{
1101 WS_CALL_PROPERTY_ID id
;
1107 WS_DATETIME_FORMAT_UTC
,
1108 WS_DATETIME_FORMAT_LOCAL
,
1109 WS_DATETIME_FORMAT_NONE
1110 } WS_DATETIME_FORMAT
;
1112 struct _WS_DATETIME
{
1113 unsigned __int64
DECLSPEC_ALIGN(8) ticks
;
1114 WS_DATETIME_FORMAT format
;
1117 struct _WS_DATETIME_DESCRIPTION
{
1118 WS_DATETIME minValue
;
1119 WS_DATETIME maxValue
;
1122 struct _WS_XML_DATETIME_TEXT
{
1127 struct _WS_XML_BASE64_TEXT
{
1134 WS_URL_HTTP_SCHEME_TYPE
,
1135 WS_URL_HTTPS_SCHEME_TYPE
,
1136 WS_URL_NETTCP_SCHEME_TYPE
,
1137 WS_URL_SOAPUDP_SCHEME_TYPE
,
1138 WS_URL_NETPIPE_SCHEME_TYPE
1139 } WS_URL_SCHEME_TYPE
;
1142 WS_URL_FLAGS_ALLOW_HOST_WILDCARDS
= 0x1,
1143 WS_URL_FLAGS_NO_PATH_COLLAPSE
= 0x2,
1144 WS_URL_FLAGS_ZERO_TERMINATE
= 0x4
1148 WS_URL_SCHEME_TYPE scheme
;
1151 struct _WS_HTTP_URL
{
1155 WS_STRING portAsString
;
1161 struct _WS_HTTPS_URL
{
1165 WS_STRING portAsString
;
1171 struct _WS_NETTCP_URL
{
1175 WS_STRING portAsString
;
1181 struct _WS_SOAPUDP_URL
{
1185 WS_STRING portAsString
;
1191 struct _WS_NETPIPE_URL
{
1195 WS_STRING portAsString
;
1203 WS_IP_VERSION_4
= 1,
1204 WS_IP_VERSION_6
= 2,
1205 WS_IP_VERSION_AUTO
= 3
1210 WS_BUFFERED_TRANSFER_MODE
= 0x0,
1211 WS_STREAMED_INPUT_TRANSFER_MODE
= 0x1,
1212 WS_STREAMED_OUTPUT_TRANSFER_MODE
= 0x2,
1213 WS_STREAMED_TRANSFER_MODE
= (WS_STREAMED_INPUT_TRANSFER_MODE
|WS_STREAMED_OUTPUT_TRANSFER_MODE
)
1216 typedef HRESULT (CALLBACK
*WS_CREATE_CHANNEL_CALLBACK
)
1217 (WS_CHANNEL_TYPE
, const void*, ULONG
, void**, WS_ERROR
*);
1219 typedef void (CALLBACK
*WS_FREE_CHANNEL_CALLBACK
)
1222 typedef HRESULT (CALLBACK
*WS_RESET_CHANNEL_CALLBACK
)
1225 typedef HRESULT (CALLBACK
*WS_OPEN_CHANNEL_CALLBACK
)
1226 (void*, const WS_ENDPOINT_ADDRESS
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1228 typedef HRESULT (CALLBACK
*WS_CLOSE_CHANNEL_CALLBACK
)
1229 (void*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1231 typedef HRESULT (CALLBACK
*WS_ABORT_CHANNEL_CALLBACK
)
1234 typedef HRESULT (CALLBACK
*WS_GET_CHANNEL_PROPERTY_CALLBACK
)
1235 (void*, WS_CHANNEL_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
1237 typedef HRESULT (CALLBACK
*WS_SET_CHANNEL_PROPERTY_CALLBACK
)
1238 (void*, WS_CHANNEL_PROPERTY_ID
, const void*, ULONG
, WS_ERROR
*);
1240 typedef HRESULT (CALLBACK
*WS_WRITE_MESSAGE_START_CALLBACK
)
1241 (void*, WS_MESSAGE
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1243 typedef HRESULT (CALLBACK
*WS_WRITE_MESSAGE_END_CALLBACK
)
1244 (void*, WS_MESSAGE
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1246 typedef HRESULT (CALLBACK
*WS_READ_MESSAGE_START_CALLBACK
)
1247 (void*, WS_MESSAGE
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1249 typedef HRESULT (CALLBACK
*WS_READ_MESSAGE_END_CALLBACK
)
1250 (void*, WS_MESSAGE
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1252 typedef HRESULT (CALLBACK
*WS_ABANDON_MESSAGE_CALLBACK
)
1253 (void*, WS_MESSAGE
*, WS_ERROR
*);
1255 typedef HRESULT (CALLBACK
*WS_SHUTDOWN_SESSION_CHANNEL_CALLBACK
)
1256 (void*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1258 struct _WS_CUSTOM_CHANNEL_CALLBACKS
1260 WS_CREATE_CHANNEL_CALLBACK createChannelCallback
;
1261 WS_FREE_CHANNEL_CALLBACK freeChannelCallback
;
1262 WS_RESET_CHANNEL_CALLBACK resetChannelCallback
;
1263 WS_OPEN_CHANNEL_CALLBACK openChannelCallback
;
1264 WS_CLOSE_CHANNEL_CALLBACK closeChannelCallback
;
1265 WS_ABORT_CHANNEL_CALLBACK abortChannelCallback
;
1266 WS_GET_CHANNEL_PROPERTY_CALLBACK getChannelPropertyCallback
;
1267 WS_SET_CHANNEL_PROPERTY_CALLBACK setChannelPropertyCallback
;
1268 WS_WRITE_MESSAGE_START_CALLBACK writeMessageStartCallback
;
1269 WS_WRITE_MESSAGE_END_CALLBACK writeMessageEndCallback
;
1270 WS_READ_MESSAGE_START_CALLBACK readMessageStartCallback
;
1271 WS_READ_MESSAGE_END_CALLBACK readMessageEndCallback
;
1272 WS_ABANDON_MESSAGE_CALLBACK abandonMessageCallback
;
1273 WS_SHUTDOWN_SESSION_CHANNEL_CALLBACK shutdownSessionChannelCallback
;
1276 typedef HRESULT (CALLBACK
*WS_CREATE_ENCODER_CALLBACK
)
1277 (void*, WS_WRITE_CALLBACK
, void*, void**, WS_ERROR
*);
1279 typedef HRESULT (CALLBACK
*WS_ENCODER_GET_CONTENT_TYPE_CALLBACK
)
1280 (void*, const WS_STRING
*, WS_STRING
*, WS_STRING
*, WS_ERROR
*);
1282 typedef HRESULT (CALLBACK
*WS_ENCODER_START_CALLBACK
)
1283 (void*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1285 typedef HRESULT (CALLBACK
*WS_ENCODER_ENCODE_CALLBACK
)
1286 (void*, const WS_BYTES
*, ULONG
, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1288 typedef HRESULT (CALLBACK
*WS_ENCODER_END_CALLBACK
)
1289 (void*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1291 typedef void (CALLBACK
*WS_FREE_ENCODER_CALLBACK
)
1294 struct _WS_CHANNEL_ENCODER
1296 void *createContext
;
1297 WS_CREATE_ENCODER_CALLBACK createEncoderCallback
;
1298 WS_ENCODER_GET_CONTENT_TYPE_CALLBACK encoderGetContentTypeCallback
;
1299 WS_ENCODER_START_CALLBACK encoderStartCallback
;
1300 WS_ENCODER_ENCODE_CALLBACK encoderEncodeCallback
;
1301 WS_ENCODER_END_CALLBACK encoderEndCallback
;
1302 WS_FREE_ENCODER_CALLBACK freeEncoderCallback
;
1305 typedef HRESULT (CALLBACK
*WS_CREATE_DECODER_CALLBACK
)
1306 (void*, WS_READ_CALLBACK
, void*, void**, WS_ERROR
*);
1308 typedef HRESULT (CALLBACK
*WS_DECODER_GET_CONTENT_TYPE_CALLBACK
)
1309 (void*, const WS_STRING
*, const WS_STRING
*, WS_STRING
*, WS_ERROR
*);
1311 typedef HRESULT (CALLBACK
*WS_DECODER_START_CALLBACK
)
1312 (void*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1314 typedef HRESULT (CALLBACK
*WS_DECODER_DECODE_CALLBACK
)
1315 (void*, void*, ULONG
, ULONG
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1317 typedef HRESULT (CALLBACK
*WS_DECODER_END_CALLBACK
)
1318 (void*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1320 typedef void (CALLBACK
*WS_FREE_DECODER_CALLBACK
)
1323 struct _WS_CHANNEL_DECODER
1325 void *createContext
;
1326 WS_CREATE_DECODER_CALLBACK createDecoderCallback
;
1327 WS_DECODER_GET_CONTENT_TYPE_CALLBACK decoderGetContentTypeCallback
;
1328 WS_DECODER_START_CALLBACK decoderStartCallback
;
1329 WS_DECODER_DECODE_CALLBACK decoderDecodeCallback
;
1330 WS_DECODER_END_CALLBACK decoderEndCallback
;
1331 WS_FREE_DECODER_CALLBACK freeDecoderCallback
;
1336 WS_PROTECTION_LEVEL_NONE
= 1,
1337 WS_PROTECTION_LEVEL_SIGN
= 2,
1338 WS_PROTECTION_LEVEL_SIGN_AND_ENCRYPT
= 3
1339 } WS_PROTECTION_LEVEL
;
1343 WS_MANUAL_COOKIE_MODE
= 1,
1344 WS_AUTO_COOKIE_MODE
= 2
1349 WS_HTTP_PROXY_SETTING_MODE_AUTO
= 0x1,
1350 WS_HTTP_PROXY_SETTING_MODE_NONE
= 0x2,
1351 WS_HTTP_PROXY_SETTING_MODE_CUSTOM
= 0x3
1352 } WS_HTTP_PROXY_SETTING_MODE
;
1354 struct _WS_CUSTOM_HTTP_PROXY
1360 struct _WS_HTTP_HEADER_MAPPING
1362 WS_XML_STRING headerName
;
1363 ULONG headerMappingOptions
;
1366 struct _WS_HTTP_MESSAGE_MAPPING
1368 ULONG requestMappingOptions
;
1369 ULONG responseMappingOptions
;
1370 WS_HTTP_HEADER_MAPPING
**requestHeaderMappings
;
1371 ULONG requestHeaderMappingCount
;
1372 WS_HTTP_HEADER_MAPPING
**responseHeaderMappings
;
1373 ULONG responseHeaderMappingCount
;
1376 typedef HRESULT (CALLBACK
*WS_HTTP_REDIRECT_CALLBACK
)
1377 (void*, const WS_STRING
*, const WS_STRING
*);
1379 struct _WS_HTTP_REDIRECT_CALLBACK_CONTEXT
1381 WS_HTTP_REDIRECT_CALLBACK callback
;
1387 WS_RECEIVE_REQUIRED_MESSAGE
= 1,
1388 WS_RECEIVE_OPTIONAL_MESSAGE
= 2
1389 } WS_RECEIVE_OPTION
;
1391 typedef void (CALLBACK
*WS_MESSAGE_DONE_CALLBACK
)
1394 typedef HRESULT (CALLBACK
*WS_PROXY_MESSAGE_CALLBACK
)
1395 (WS_MESSAGE
*, WS_HEAP
*, void*, WS_ERROR
*);
1397 struct _WS_PROXY_MESSAGE_CALLBACK_CONTEXT
1399 WS_PROXY_MESSAGE_CALLBACK callback
;
1405 WS_LISTENER_STATE_CREATED
,
1406 WS_LISTENER_STATE_OPENING
,
1407 WS_LISTENER_STATE_OPEN
,
1408 WS_LISTENER_STATE_FAULTED
,
1409 WS_LISTENER_STATE_CLOSING
,
1410 WS_LISTENER_STATE_CLOSED
1411 } WS_LISTENER_STATE
;
1415 WS_LISTENER_PROPERTY_LISTEN_BACKLOG
,
1416 WS_LISTENER_PROPERTY_IP_VERSION
,
1417 WS_LISTENER_PROPERTY_STATE
,
1418 WS_LISTENER_PROPERTY_ASYNC_CALLBACK_MODEL
,
1419 WS_LISTENER_PROPERTY_CHANNEL_TYPE
,
1420 WS_LISTENER_PROPERTY_CHANNEL_BINDING
,
1421 WS_LISTENER_PROPERTY_CONNECT_TIMEOUT
,
1422 WS_LISTENER_PROPERTY_IS_MULTICAST
,
1423 WS_LISTENER_PROPERTY_MULTICAST_INTERFACES
,
1424 WS_LISTENER_PROPERTY_MULTICAST_LOOPBACK
,
1425 WS_LISTENER_PROPERTY_CLOSE_TIMEOUT
,
1426 WS_LISTENER_PROPERTY_TO_HEADER_MATCHING_OPTIONS
,
1427 WS_LISTENER_PROPERTY_TRANSPORT_URL_MATCHING_OPTIONS
,
1428 WS_LISTENER_PROPERTY_CUSTOM_LISTENER_CALLBACKS
,
1429 WS_LISTENER_PROPERTY_CUSTOM_LISTENER_PARAMETERS
,
1430 WS_LISTENER_PROPERTY_CUSTOM_LISTENER_INSTANCE
,
1431 WS_LISTENER_PROPERTY_DISALLOWED_USER_AGENT
1432 } WS_LISTENER_PROPERTY_ID
;
1434 struct _WS_LISTENER_PROPERTY
1436 WS_LISTENER_PROPERTY_ID id
;
1441 struct _WS_DISALLOWED_USER_AGENT_SUBSTRINGS
1443 ULONG subStringCount
;
1444 WS_STRING
**subStrings
;
1447 struct _WS_LISTENER_PROPERTIES
1449 WS_LISTENER_PROPERTY
*properties
;
1450 ULONG propertyCount
;
1453 typedef HRESULT (CALLBACK
*WS_CREATE_LISTENER_CALLBACK
)
1454 (WS_CHANNEL_TYPE
, const void*, ULONG
, void**, WS_ERROR
*);
1456 typedef void (CALLBACK
*WS_FREE_LISTENER_CALLBACK
)
1459 typedef HRESULT (CALLBACK
*WS_RESET_LISTENER_CALLBACK
)
1462 typedef HRESULT (CALLBACK
*WS_OPEN_LISTENER_CALLBACK
)
1463 (void*, const WS_STRING
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1465 typedef HRESULT (CALLBACK
*WS_CLOSE_LISTENER_CALLBACK
)
1466 (void*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1468 typedef HRESULT (CALLBACK
*WS_ABORT_LISTENER_CALLBACK
)
1471 typedef HRESULT (CALLBACK
*WS_GET_LISTENER_PROPERTY_CALLBACK
)
1472 (void*, WS_LISTENER_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
1474 typedef HRESULT (CALLBACK
*WS_SET_LISTENER_PROPERTY_CALLBACK
)
1475 (void*, WS_LISTENER_PROPERTY_ID
, const void*, ULONG
, WS_ERROR
*);
1477 typedef HRESULT (CALLBACK
*WS_CREATE_CHANNEL_FOR_LISTENER_CALLBACK
)
1478 (void*, const void*, ULONG
, void**, WS_ERROR
*);
1480 typedef HRESULT (CALLBACK
*WS_ACCEPT_CHANNEL_CALLBACK
)
1481 (void*, void*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1483 struct _WS_CUSTOM_LISTENER_CALLBACKS
1485 WS_CREATE_LISTENER_CALLBACK createListenerCallback
;
1486 WS_FREE_LISTENER_CALLBACK freeListenerCallback
;
1487 WS_RESET_LISTENER_CALLBACK resetListenerCallback
;
1488 WS_OPEN_LISTENER_CALLBACK openListenerCallback
;
1489 WS_CLOSE_LISTENER_CALLBACK closeListenerCallback
;
1490 WS_ABORT_LISTENER_CALLBACK abortListenerCallback
;
1491 WS_GET_LISTENER_PROPERTY_CALLBACK getListenerPropertyCallback
;
1492 WS_SET_LISTENER_PROPERTY_CALLBACK setListenerPropertyCallback
;
1493 WS_CREATE_CHANNEL_FOR_LISTENER_CALLBACK createChannelForListenerCallback
;
1494 WS_ACCEPT_CHANNEL_CALLBACK acceptChannelCallback
;
1499 WS_MATCH_URL_DNS_HOST
= 0x1,
1500 WS_MATCH_URL_DNS_FULLY_QUALIFIED_HOST
= 0x2,
1501 WS_MATCH_URL_NETBIOS_HOST
= 0x4,
1502 WS_MATCH_URL_LOCAL_HOST
= 0x8,
1503 WS_MATCH_URL_HOST_ADDRESSES
= 0x10,
1504 WS_MATCH_URL_THIS_HOST
= (WS_MATCH_URL_DNS_HOST
|
1505 WS_MATCH_URL_DNS_FULLY_QUALIFIED_HOST
|
1506 WS_MATCH_URL_NETBIOS_HOST
|
1507 WS_MATCH_URL_LOCAL_HOST
|
1508 WS_MATCH_URL_HOST_ADDRESSES
),
1509 WS_MATCH_URL_PORT
= 0x20,
1510 WS_MATCH_URL_EXACT_PATH
= 0x40,
1511 WS_MATCH_URL_PREFIX_PATH
= 0x80,
1512 WS_MATCH_URL_NO_QUERY
= 0x100
1515 HRESULT WINAPI
WsAbortServiceProxy(WS_SERVICE_PROXY
*, WS_ERROR
*);
1516 HRESULT WINAPI
WsAcceptChannel(WS_LISTENER
*, WS_CHANNEL
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1517 HRESULT WINAPI
WsAddCustomHeader(WS_MESSAGE
*, const WS_ELEMENT_DESCRIPTION
*, WS_WRITE_OPTION
,
1518 const void*, ULONG
, ULONG
, WS_ERROR
*);
1519 HRESULT WINAPI
WsAddMappedHeader(WS_MESSAGE
*, const WS_XML_STRING
*, WS_TYPE
, WS_WRITE_OPTION
,
1520 const void*, ULONG
, WS_ERROR
*);
1521 HRESULT WINAPI
WsAddressMessage(WS_MESSAGE
*, const WS_ENDPOINT_ADDRESS
*, WS_ERROR
*);
1522 HRESULT WINAPI
WsAlloc(WS_HEAP
*, SIZE_T
, void**, WS_ERROR
*);
1523 HRESULT WINAPI
WsCall(WS_SERVICE_PROXY
*, const WS_OPERATION_DESCRIPTION
*, const void**,
1524 WS_HEAP
*, const WS_CALL_PROPERTY
*, const ULONG
, const WS_ASYNC_CONTEXT
*,
1526 HRESULT WINAPI
WsCloseChannel(WS_CHANNEL
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1527 HRESULT WINAPI
WsCloseListener(WS_LISTENER
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1528 HRESULT WINAPI
WsCloseServiceProxy(WS_SERVICE_PROXY
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1529 HRESULT WINAPI
WsCombineUrl(const WS_STRING
*, const WS_STRING
*, ULONG
, WS_HEAP
*, WS_STRING
*, WS_ERROR
*);
1530 HRESULT WINAPI
WsCopyNode(WS_XML_WRITER
*, WS_XML_READER
*, WS_ERROR
*);
1531 HRESULT WINAPI
WsCreateChannel(WS_CHANNEL_TYPE
, WS_CHANNEL_BINDING
, const WS_CHANNEL_PROPERTY
*,
1532 ULONG
, const WS_SECURITY_DESCRIPTION
*, WS_CHANNEL
**, WS_ERROR
*);
1533 HRESULT WINAPI
WsCreateChannelForListener(WS_LISTENER
*, const WS_CHANNEL_PROPERTY
*, ULONG
, WS_CHANNEL
**,
1535 HRESULT WINAPI
WsCreateError(const WS_ERROR_PROPERTY
*, ULONG
, WS_ERROR
**);
1536 HRESULT WINAPI
WsCreateHeap(SIZE_T
, SIZE_T
, const WS_HEAP_PROPERTY
*, ULONG
, WS_HEAP
**, WS_ERROR
*);
1537 HRESULT WINAPI
WsCreateListener(WS_CHANNEL_TYPE
, WS_CHANNEL_BINDING
, const WS_LISTENER_PROPERTY
*,
1538 ULONG
, const WS_SECURITY_DESCRIPTION
*, WS_LISTENER
**, WS_ERROR
*);
1539 HRESULT WINAPI
WsCreateMessage(WS_ENVELOPE_VERSION
, WS_ADDRESSING_VERSION
, const WS_MESSAGE_PROPERTY
*,
1540 ULONG
, WS_MESSAGE
**, WS_ERROR
*);
1541 HRESULT WINAPI
WsCreateMessageForChannel(WS_CHANNEL
*, const WS_MESSAGE_PROPERTY
*, ULONG
, WS_MESSAGE
**,
1543 HRESULT WINAPI
WsCreateReader(const WS_XML_READER_PROPERTY
*, ULONG
, WS_XML_READER
**, WS_ERROR
*);
1544 HRESULT WINAPI
WsCreateServiceProxy(const WS_CHANNEL_TYPE
, const WS_CHANNEL_BINDING
,
1545 const WS_SECURITY_DESCRIPTION
*, const WS_PROXY_PROPERTY
*,
1546 const ULONG
, const WS_CHANNEL_PROPERTY
*, const ULONG
,
1547 WS_SERVICE_PROXY
**, WS_ERROR
*);
1548 HRESULT WINAPI
WsCreateServiceProxyFromTemplate(WS_CHANNEL_TYPE
, const WS_PROXY_PROPERTY
*,
1549 const ULONG
, WS_BINDING_TEMPLATE_TYPE
,
1550 void*, ULONG
, const void*, ULONG
,
1551 WS_SERVICE_PROXY
**, WS_ERROR
*);
1552 HRESULT WINAPI
WsCreateWriter(const WS_XML_WRITER_PROPERTY
*, ULONG
, WS_XML_WRITER
**, WS_ERROR
*);
1553 HRESULT WINAPI
WsCreateXmlBuffer(WS_HEAP
*, const WS_XML_BUFFER_PROPERTY
*, ULONG
, WS_XML_BUFFER
**,
1555 HRESULT WINAPI
WsDateTimeToFileTime(const WS_DATETIME
*, FILETIME
*, WS_ERROR
*);
1556 HRESULT WINAPI
WsDecodeUrl(const WS_STRING
*, ULONG
, WS_HEAP
*, WS_URL
**, WS_ERROR
*);
1557 HRESULT WINAPI
WsEncodeUrl(const WS_URL
*, ULONG
, WS_HEAP
*, WS_STRING
*, WS_ERROR
*);
1558 HRESULT WINAPI
WsFileTimeToDateTime(const FILETIME
*, WS_DATETIME
*, WS_ERROR
*);
1559 HRESULT WINAPI
WsFillReader(WS_XML_READER
*, ULONG
, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1560 HRESULT WINAPI
WsFindAttribute(WS_XML_READER
*, const WS_XML_STRING
*, const WS_XML_STRING
*, BOOL
,
1562 void WINAPI
WsFreeChannel(WS_CHANNEL
*);
1563 void WINAPI
WsFreeError(WS_ERROR
*);
1564 void WINAPI
WsFreeHeap(WS_HEAP
*);
1565 void WINAPI
WsFreeListener(WS_LISTENER
*);
1566 void WINAPI
WsFreeMessage(WS_MESSAGE
*);
1567 void WINAPI
WsFreeReader(WS_XML_READER
*);
1568 void WINAPI
WsFreeServiceProxy(WS_SERVICE_PROXY
*);
1569 void WINAPI
WsFreeWriter(WS_XML_WRITER
*);
1570 HRESULT WINAPI
WsGetChannelProperty(WS_CHANNEL
*, WS_CHANNEL_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
1571 HRESULT WINAPI
WsGetErrorProperty(WS_ERROR
*, WS_ERROR_PROPERTY_ID
, void*, ULONG
);
1572 HRESULT WINAPI
WsGetErrorString(WS_ERROR
*, ULONG
, WS_STRING
*);
1573 HRESULT WINAPI
WsGetHeapProperty(WS_HEAP
*, WS_HEAP_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
1574 HRESULT WINAPI
WsGetListenerProperty(WS_LISTENER
*, WS_LISTENER_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
1575 HRESULT WINAPI
WsGetMessageProperty(WS_MESSAGE
*, WS_MESSAGE_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
1576 HRESULT WINAPI
WsGetNamespaceFromPrefix(WS_XML_READER
*, const WS_XML_STRING
*, BOOL
,
1577 const WS_XML_STRING
**, WS_ERROR
*);
1578 HRESULT WINAPI
WsGetPrefixFromNamespace(WS_XML_WRITER
*, const WS_XML_STRING
*, BOOL
,
1579 const WS_XML_STRING
**, WS_ERROR
*);
1580 HRESULT WINAPI
WsGetReaderNode(WS_XML_READER
*, const WS_XML_NODE
**, WS_ERROR
*);
1581 HRESULT WINAPI
WsGetReaderPosition(WS_XML_READER
*, WS_XML_NODE_POSITION
*, WS_ERROR
*);
1582 HRESULT WINAPI
WsGetReaderProperty(WS_XML_READER
*, WS_XML_READER_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
1583 HRESULT WINAPI
WsGetServiceProxyProperty(WS_SERVICE_PROXY
*, const WS_PROXY_PROPERTY_ID
, void*,
1585 HRESULT WINAPI
WsGetWriterPosition(WS_XML_WRITER
*, WS_XML_NODE_POSITION
*, WS_ERROR
*);
1586 HRESULT WINAPI
WsGetWriterProperty(WS_XML_WRITER
*, WS_XML_WRITER_PROPERTY_ID
, void*, ULONG
, WS_ERROR
*);
1587 HRESULT WINAPI
WsGetXmlAttribute(WS_XML_READER
*, const WS_XML_STRING
*, WS_HEAP
*, WCHAR
**,
1589 HRESULT WINAPI
WsInitializeMessage(WS_MESSAGE
*, WS_MESSAGE_INITIALIZATION
, WS_MESSAGE
*, WS_ERROR
*);
1590 HRESULT WINAPI
WsMoveReader(WS_XML_READER
*, WS_MOVE_TO
, BOOL
*, WS_ERROR
*);
1591 HRESULT WINAPI
WsMoveWriter(WS_XML_WRITER
*, WS_MOVE_TO
, BOOL
*, WS_ERROR
*);
1592 HRESULT WINAPI
WsOpenChannel(WS_CHANNEL
*, const WS_ENDPOINT_ADDRESS
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1593 HRESULT WINAPI
WsOpenListener(WS_LISTENER
*, WS_STRING
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1594 HRESULT WINAPI
WsOpenServiceProxy(WS_SERVICE_PROXY
*, const WS_ENDPOINT_ADDRESS
*, const WS_ASYNC_CONTEXT
*,
1596 HRESULT WINAPI
WsReadAttribute(WS_XML_READER
*, const WS_ATTRIBUTE_DESCRIPTION
*, WS_READ_OPTION
,
1597 WS_HEAP
*, void*, ULONG
, WS_ERROR
*);
1598 HRESULT WINAPI
WsReadBody(WS_MESSAGE
*, const WS_ELEMENT_DESCRIPTION
*, WS_READ_OPTION
, WS_HEAP
*, void*,
1600 HRESULT WINAPI
WsReadBytes(WS_XML_READER
*, void*, ULONG
, ULONG
*, WS_ERROR
*);
1601 HRESULT WINAPI
WsReadChars(WS_XML_READER
*, WCHAR
*, ULONG
, ULONG
*, WS_ERROR
*);
1602 HRESULT WINAPI
WsReadCharsUtf8(WS_XML_READER
*, BYTE
*, ULONG
, ULONG
*, WS_ERROR
*);
1603 HRESULT WINAPI
WsReadElement(WS_XML_READER
*, const WS_ELEMENT_DESCRIPTION
*, WS_READ_OPTION
,
1604 WS_HEAP
*, void*, ULONG
, WS_ERROR
*);
1605 HRESULT WINAPI
WsReadEndAttribute(WS_XML_READER
*, WS_ERROR
*);
1606 HRESULT WINAPI
WsReadEndElement(WS_XML_READER
*, WS_ERROR
*);
1607 HRESULT WINAPI
WsReadEnvelopeEnd(WS_MESSAGE
*, WS_ERROR
*);
1608 HRESULT WINAPI
WsReadEnvelopeStart(WS_MESSAGE
*, WS_XML_READER
*, WS_MESSAGE_DONE_CALLBACK
, void*,
1610 HRESULT WINAPI
WsReadMessageEnd(WS_CHANNEL
*, WS_MESSAGE
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1611 HRESULT WINAPI
WsReadMessageStart(WS_CHANNEL
*, WS_MESSAGE
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1612 HRESULT WINAPI
WsReadNode(WS_XML_READER
*, WS_ERROR
*);
1613 HRESULT WINAPI
WsReadQualifiedName(WS_XML_READER
*, WS_HEAP
*, WS_XML_STRING
*, WS_XML_STRING
*,
1614 WS_XML_STRING
*, WS_ERROR
*);
1615 HRESULT WINAPI
WsReadStartAttribute(WS_XML_READER
*, ULONG
, WS_ERROR
*);
1616 HRESULT WINAPI
WsReadStartElement(WS_XML_READER
*, WS_ERROR
*);
1617 HRESULT WINAPI
WsReadToStartElement(WS_XML_READER
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
1619 HRESULT WINAPI
WsReadType(WS_XML_READER
*, WS_TYPE_MAPPING
, WS_TYPE
, const void*, WS_READ_OPTION
,
1620 WS_HEAP
*, void*, ULONG
, WS_ERROR
*);
1621 HRESULT WINAPI
WsReadValue(WS_XML_READER
*, WS_VALUE_TYPE
, void*, ULONG
, WS_ERROR
*);
1622 HRESULT WINAPI
WsReceiveMessage(WS_CHANNEL
*, WS_MESSAGE
*, const WS_MESSAGE_DESCRIPTION
**, ULONG
,
1623 WS_RECEIVE_OPTION
, WS_READ_OPTION
, WS_HEAP
*, void*, ULONG
, ULONG
*,
1624 const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1625 HRESULT WINAPI
WsRemoveCustomHeader(WS_MESSAGE
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
1627 HRESULT WINAPI
WsRemoveHeader(WS_MESSAGE
*, WS_HEADER_TYPE
, WS_ERROR
*);
1628 HRESULT WINAPI
WsRemoveMappedHeader(WS_MESSAGE
*, const WS_XML_STRING
*, WS_ERROR
*);
1629 HRESULT WINAPI
WsRemoveNode(const WS_XML_NODE_POSITION
*, WS_ERROR
*);
1630 HRESULT WINAPI
WsResetChannel(WS_CHANNEL
*, WS_ERROR
*);
1631 HRESULT WINAPI
WsResetMessage(WS_MESSAGE
*, WS_ERROR
*);
1632 HRESULT WINAPI
WsResetError(WS_ERROR
*);
1633 HRESULT WINAPI
WsResetHeap(WS_HEAP
*, WS_ERROR
*);
1634 HRESULT WINAPI
WsResetListener(WS_LISTENER
*, WS_ERROR
*);
1635 HRESULT WINAPI
WsResetMessage(WS_MESSAGE
*, WS_ERROR
*);
1636 HRESULT WINAPI
WsResetServiceProxy(WS_SERVICE_PROXY
*, WS_ERROR
*);
1637 HRESULT WINAPI
WsRequestReply(WS_CHANNEL
*, WS_MESSAGE
*, const WS_MESSAGE_DESCRIPTION
*, WS_WRITE_OPTION
,
1638 const void*, ULONG
, WS_MESSAGE
*, const WS_MESSAGE_DESCRIPTION
*,
1639 WS_READ_OPTION
, WS_HEAP
*, void*, ULONG
, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1640 HRESULT WINAPI
WsSendMessage(WS_CHANNEL
*, WS_MESSAGE
*, const WS_MESSAGE_DESCRIPTION
*, WS_WRITE_OPTION
,
1641 const void*, ULONG
, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1642 HRESULT WINAPI
WsSendReplyMessage(WS_CHANNEL
*, WS_MESSAGE
*, const WS_MESSAGE_DESCRIPTION
*,
1643 WS_WRITE_OPTION
, const void*, ULONG
, WS_MESSAGE
*,
1644 const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1645 HRESULT WINAPI
WsSetChannelProperty(WS_CHANNEL
*, WS_CHANNEL_PROPERTY_ID
, const void*, ULONG
, WS_ERROR
*);
1646 HRESULT WINAPI
WsSetErrorProperty(WS_ERROR
*, WS_ERROR_PROPERTY_ID
, const void*, ULONG
);
1647 HRESULT WINAPI
WsSetHeader(WS_MESSAGE
*, WS_HEADER_TYPE
, WS_TYPE
, WS_WRITE_OPTION
, const void*, ULONG
,
1649 HRESULT WINAPI
WsSetInput(WS_XML_READER
*, const WS_XML_READER_ENCODING
*, const WS_XML_READER_INPUT
*,
1650 const WS_XML_READER_PROPERTY
*, ULONG
, WS_ERROR
*);
1651 HRESULT WINAPI
WsSetInputToBuffer(WS_XML_READER
*, WS_XML_BUFFER
*, const WS_XML_READER_PROPERTY
*,
1653 HRESULT WINAPI
WsSetListenerProperty(WS_LISTENER
*, WS_LISTENER_PROPERTY_ID
, const void*, ULONG
, WS_ERROR
*);
1654 HRESULT WINAPI
WsSetMessageProperty(WS_MESSAGE
*, WS_MESSAGE_PROPERTY_ID
, const void*, ULONG
, WS_ERROR
*);
1655 HRESULT WINAPI
WsSetOutput(WS_XML_WRITER
*, const WS_XML_WRITER_ENCODING
*, const WS_XML_WRITER_OUTPUT
*,
1656 const WS_XML_WRITER_PROPERTY
*, ULONG
, WS_ERROR
*);
1657 HRESULT WINAPI
WsSetOutputToBuffer(WS_XML_WRITER
*, WS_XML_BUFFER
*, const WS_XML_WRITER_PROPERTY
*,
1659 HRESULT WINAPI
WsSetReaderPosition(WS_XML_READER
*, const WS_XML_NODE_POSITION
*, WS_ERROR
*);
1660 HRESULT WINAPI
WsSetWriterPosition(WS_XML_WRITER
*, const WS_XML_NODE_POSITION
*, WS_ERROR
*);
1661 HRESULT WINAPI
WsSkipNode(WS_XML_READER
*, WS_ERROR
*);
1662 HRESULT WINAPI
WsWriteArray(WS_XML_WRITER
*, const WS_XML_STRING
*, const WS_XML_STRING
*, WS_VALUE_TYPE
,
1663 const void*, ULONG
, ULONG
, ULONG
, WS_ERROR
*);
1664 HRESULT WINAPI
WsWriteAttribute(WS_XML_WRITER
*, const WS_ATTRIBUTE_DESCRIPTION
*, WS_WRITE_OPTION
,
1665 const void*, ULONG
, WS_ERROR
*);
1666 HRESULT WINAPI
WsWriteBody(WS_MESSAGE
*, const WS_ELEMENT_DESCRIPTION
*, WS_WRITE_OPTION
, const void*,
1668 HRESULT WINAPI
WsWriteBytes(WS_XML_WRITER
*, const void*, ULONG
, WS_ERROR
*);
1669 HRESULT WINAPI
WsWriteChars(WS_XML_WRITER
*, const WCHAR
*, ULONG
, WS_ERROR
*);
1670 HRESULT WINAPI
WsWriteCharsUtf8(WS_XML_WRITER
*, const BYTE
*, ULONG
, WS_ERROR
*);
1671 HRESULT WINAPI
WsWriteElement(WS_XML_WRITER
*, const WS_ELEMENT_DESCRIPTION
*, WS_WRITE_OPTION
,
1672 const void*, ULONG
, WS_ERROR
*);
1673 HRESULT WINAPI
WsWriteEndAttribute(WS_XML_WRITER
*, WS_ERROR
*);
1674 HRESULT WINAPI
WsWriteEndCData(WS_XML_WRITER
*, WS_ERROR
*);
1675 HRESULT WINAPI
WsWriteEndElement(WS_XML_WRITER
*, WS_ERROR
*);
1676 HRESULT WINAPI
WsWriteEndStartElement(WS_XML_WRITER
*, WS_ERROR
*);
1677 HRESULT WINAPI
WsWriteEnvelopeEnd(WS_MESSAGE
*, WS_ERROR
*);
1678 HRESULT WINAPI
WsWriteEnvelopeStart(WS_MESSAGE
*, WS_XML_WRITER
*, WS_MESSAGE_DONE_CALLBACK
, void*, WS_ERROR
*);
1679 HRESULT WINAPI
WsWriteMessageStart(WS_CHANNEL
*, WS_MESSAGE
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1680 HRESULT WINAPI
WsWriteMessageEnd(WS_CHANNEL
*, WS_MESSAGE
*, const WS_ASYNC_CONTEXT
*, WS_ERROR
*);
1681 HRESULT WINAPI
WsWriteNode(WS_XML_WRITER
*, const WS_XML_NODE
*, WS_ERROR
*);
1682 HRESULT WINAPI
WsWriteQualifiedName(WS_XML_WRITER
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
1683 const WS_XML_STRING
*, WS_ERROR
*);
1684 HRESULT WINAPI
WsWriteStartAttribute(WS_XML_WRITER
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
1685 const WS_XML_STRING
*, BOOL
, WS_ERROR
*);
1686 HRESULT WINAPI
WsWriteStartCData(WS_XML_WRITER
*, WS_ERROR
*);
1687 HRESULT WINAPI
WsWriteStartElement(WS_XML_WRITER
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
1688 const WS_XML_STRING
*, WS_ERROR
*);
1689 HRESULT WINAPI
WsWriteText(WS_XML_WRITER
*, const WS_XML_TEXT
*, WS_ERROR
*);
1690 HRESULT WINAPI
WsWriteType(WS_XML_WRITER
*, WS_TYPE_MAPPING
, WS_TYPE
, const void*, WS_WRITE_OPTION
,
1691 const void*, ULONG
, WS_ERROR
*);
1692 HRESULT WINAPI
WsWriteValue(WS_XML_WRITER
*, WS_VALUE_TYPE
, const void*, ULONG
, WS_ERROR
*);
1693 HRESULT WINAPI
WsWriteXmlBuffer(WS_XML_WRITER
*, WS_XML_BUFFER
*, WS_ERROR
*);
1694 HRESULT WINAPI
WsWriteXmlBufferToBytes(WS_XML_WRITER
*, WS_XML_BUFFER
*, const WS_XML_WRITER_ENCODING
*,
1695 const WS_XML_WRITER_PROPERTY
*, ULONG
, WS_HEAP
*, void**,
1697 HRESULT WINAPI
WsWriteXmlnsAttribute(WS_XML_WRITER
*, const WS_XML_STRING
*, const WS_XML_STRING
*,
1699 HRESULT WINAPI
WsXmlStringEquals(const WS_XML_STRING
*, const WS_XML_STRING
*, WS_ERROR
*);
1701 #define WS_S_ASYNC 0x003d0000
1702 #define WS_S_END 0x003d0001
1703 #define WS_E_INVALID_FORMAT 0x803d0000
1704 #define WS_E_OBJECT_FAULTED 0x803d0001
1705 #define WS_E_NUMERIC_OVERFLOW 0x803d0002
1706 #define WS_E_INVALID_OPERATION 0x803d0003
1707 #define WS_E_OPERATION_ABORTED 0x803d0004
1708 #define WS_E_ENDPOINT_ACCESS_DENIED 0x803d0005
1709 #define WS_E_OPERATION_TIMED_OUT 0x803d0006
1710 #define WS_E_OPERATION_ABANDONED 0x803d0007
1711 #define WS_E_QUOTA_EXCEEDED 0x803d0008
1712 #define WS_E_NO_TRANSLATION_AVAILABLE 0x803d0009
1713 #define WS_E_SECURITY_VERIFICATION_FAILURE 0x803d000a
1714 #define WS_E_ADDRESS_IN_USE 0x803d000b
1715 #define WS_E_ADDRESS_NOT_AVAILABLE 0x803d000c
1716 #define WS_E_ENDPOINT_NOT_FOUND 0x803d000d
1717 #define WS_E_ENDPOINT_NOT_AVAILABLE 0x803d000e
1718 #define WS_E_ENDPOINT_FAILURE 0x803d000f
1719 #define WS_E_ENDPOINT_UNREACHABLE 0x803d0010
1720 #define WS_E_ENDPOINT_ACTION_NOT_SUPPORTED 0x803d0011
1721 #define WS_E_ENDPOINT_TOO_BUSY 0x803d0012
1722 #define WS_E_ENDPOINT_FAULT_RECEIVED 0x803d0013
1723 #define WS_E_ENDPOINT_DISCONNECTED 0x803d0014
1724 #define WS_E_PROXY_FAILURE 0x803d0015
1725 #define WS_E_PROXY_ACCESS_DENIED 0x803d0016
1726 #define WS_E_NOT_SUPPORTED 0x803d0017
1727 #define WS_E_PROXY_REQUIRES_BASIC_AUTH 0x803d0018
1728 #define WS_E_PROXY_REQUIRES_DIGEST_AUTH 0x803d0019
1729 #define WS_E_PROXY_REQUIRES_NTLM_AUTH 0x803d001a
1730 #define WS_E_PROXY_REQUIRES_NEGOTIATE_AUTH 0x803d001b
1731 #define WS_E_SERVER_REQUIRES_BASIC_AUTH 0x803d001c
1732 #define WS_E_SERVER_REQUIRES_DIGEST_AUTH 0x803d001d
1733 #define WS_E_SERVER_REQUIRES_NTLM_AUTH 0x803d001e
1734 #define WS_E_SERVER_REQUIRES_NEGOTIATE_AUTH 0x803d001f
1735 #define WS_E_INVALID_ENDPOINT_URL 0x803d0020
1736 #define WS_E_OTHER 0x803d0021
1737 #define WS_E_SECURITY_TOKEN_EXPIRED 0x803d0022
1738 #define WS_E_SECURITY_SYSTEM_FAILURE 0x803d0023
1742 #endif /* __cplusplus */
1744 #endif /* __WINE_WEBSERVICES_H */