WS_XML_WRITER_BINARY_ENCODING structure (webservices.h)

Used to indicate that the writer should emit bytes as binary xml.

Syntax

typedef struct _WS_XML_WRITER_BINARY_ENCODING {
  WS_XML_WRITER_ENCODING     encoding;
  WS_XML_DICTIONARY          *staticDictionary;
  WS_DYNAMIC_STRING_CALLBACK dynamicStringCallback;
  void                       *dynamicStringCallbackState;
} WS_XML_WRITER_BINARY_ENCODING;

Members

encoding

The base type for all types that derive from WS_XML_WRITER_ENCODING.

staticDictionary

Indicates the dictionary that the writer should use for static strings. WS_XML_STRINGs that are written that reference this dictionary, will be written in the binary xml document using an id rather than the string itself. When reading this document, the application must provide a dictionary with the same strings.

dynamicStringCallback

Specifies an optional callback that the writer will invoke when a WS_XML_STRING that is not found in the staticDictionary is written for the first time. The callback provides the mapping to an id which the writer will then use. It is the responsibility of the callback to coordinate with the writer to propagate these strings to the reader. The string is not added to the dictionary if this callback is not specified.

dynamicStringCallbackState

User-defined state that will be passed to dynamicStringCallback.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header webservices.h