WS_CHANNEL_PROPERTY_CONSTRAINT structure (webservices.h)
Specifies constraints for a particular channel property.Any property constraints that are not specified will use the default constraints.
Syntax
typedef struct _WS_CHANNEL_PROPERTY_CONSTRAINT {
WS_CHANNEL_PROPERTY_ID id;
void *allowedValues;
ULONG allowedValuesSize;
struct {
WS_CHANNEL_PROPERTY channelProperty;
} out;
} WS_CHANNEL_PROPERTY_CONSTRAINT;
Members
id
The ID of the channel property. The following channel properties constraints may be specified:
-
WS_CHANNEL_PROPERTY_ENCODING
If this property constraint is not specified when using
WS_HTTP_CHANNEL_BINDING the default constraint value
of WS_ENCODING_XML_UTF8 will be used.
If this property constraint is not specified not specified when using WS_TCP_CHANNEL_BINDING the default constraint value of WS_ENCODING_XML_BINARY_SESSION_1 will be used.
- WS_CHANNEL_PROPERTY_ADDRESSING_VERSION If this property constraint is not specified, the default constraint value of WS_ADDRESSING_VERSION_1_0 will be used.
- WS_CHANNEL_PROPERTY_ENVELOPE_VERSION If this property constraint is not specified, the default constraint of value of WS_ENVELOPE_VERSION_SOAP_1_2 will be used.
allowedValues
An array of acceptable values. The type of the values in the array correspond to the type of the values of the channel property. See the documentation for a particular channel property to determine the type of the property.
allowedValuesSize
The total size of the allowedValues array, in bytes. This size must be a multiple of the size of the type of the value of the property.
out
When WsMatchPolicyAlternative returns NOERROR, the entire contents of this structure will be filled out.
out.channelProperty
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 |