WS_TYPE_MAPPING enumeration (webservices.h)
How a WS_TYPE maps to or from XML when serialized or deserialized.
Syntax
typedef enum {
WS_ELEMENT_TYPE_MAPPING = 1,
WS_ATTRIBUTE_TYPE_MAPPING = 2,
WS_ELEMENT_CONTENT_TYPE_MAPPING = 3,
WS_ANY_ELEMENT_TYPE_MAPPING = 4
} WS_TYPE_MAPPING;
Constants
WS_ELEMENT_TYPE_MAPPING Value: 1 This is used when reading or writing an element where the type corresponds to the type of the element. The definition of the type may include mappings to attributes, text, or child elements of the element. The following calling sequence is used when writing an element:
The following calling sequence is used when reading an element:
|
WS_ATTRIBUTE_TYPE_MAPPING Value: 2 This is used when reading or writing the value of a single attribute. The definition of the type must not require any mappings to attributes or child elements. The following calling sequence is used when writing an attribute value.
The following calling sequence is used when reading an attribute value.
|
WS_ELEMENT_CONTENT_TYPE_MAPPING Value: 3 This is used when the type corresponds to all or part of the content (text and child elements) of an element. The definition of the type may include mappings to text or child elements, but must not include any attributes. The following calling sequence is used when writing the contents of an element:
The following calling sequence is used when reading the contents of an element:
|
WS_ANY_ELEMENT_TYPE_MAPPING Value: 4 This is used when the type corresponds to the complete element, including the name and namespace of the element. The definition may include attributes and child elements and text. The following calling sequence is used when writing an element:
The following calling sequence is used when reading the contents of an element:
|
Remarks
See the documentation for each WS_TYPE for which WS_TYPE_MAPPING values are supported.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
Header | webservices.h |