(Ms-Oxwssync) : Mailbox Contents Synchronization Web Service Protocol
(Ms-Oxwssync) : Mailbox Contents Synchronization Web Service Protocol
(Ms-Oxwssync) : Mailbox Contents Synchronization Web Service Protocol
Tools. The Open Specifications documentation does not require the use of Microsoft programming
tools or programming environments in order for you to develop an implementation. If you have access
to Microsoft programming tools and environments, you are free to take advantage of them. Certain
Open Specifications documents are intended for use in conjunction with publicly available standards
specifications and network programming art and, as such, assume that the reader either is familiar
with the aforementioned material or has immediate access to it.
1 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Revision Summary
Revision Revision
Date History Class Comments
2 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Revision Revision
Date History Class Comments
3 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Table of Contents
1 Introduction ............................................................................................................ 6
1.1 Glossary ........................................................................................................... 6
1.2 References ........................................................................................................ 7
1.2.1 Normative References ................................................................................... 7
1.2.2 Informative References ................................................................................. 8
1.3 Overview .......................................................................................................... 8
1.4 Relationship to Other Protocols ............................................................................ 9
1.5 Prerequisites/Preconditions ................................................................................. 9
1.6 Applicability Statement ..................................................................................... 10
1.7 Versioning and Capability Negotiation ................................................................. 10
1.8 Vendor-Extensible Fields ................................................................................... 10
1.9 Standards Assignments..................................................................................... 10
2 Messages ............................................................................................................... 11
2.1 Transport ........................................................................................................ 11
2.2 Common Message Syntax ................................................................................. 11
2.2.1 Namespaces .............................................................................................. 11
2.2.2 Messages................................................................................................... 11
2.2.3 Elements ................................................................................................... 11
2.2.4 Complex Types ........................................................................................... 12
2.2.5 Simple Types ............................................................................................. 12
2.2.6 Attributes .................................................................................................. 12
2.2.7 Groups ...................................................................................................... 12
2.2.8 Attribute Groups ......................................................................................... 12
2.2.9 Common Data Structures ............................................................................ 12
3 Protocol Details ..................................................................................................... 13
3.1 ExchangeServicePortType Server Details ............................................................. 13
3.1.1 Abstract Data Model .................................................................................... 13
3.1.2 Timers ...................................................................................................... 13
3.1.3 Initialization ............................................................................................... 13
3.1.4 Message Processing Events and Sequencing Rules .......................................... 13
3.1.4.1 SyncFolderHierarchy.............................................................................. 14
3.1.4.1.1 Messages ....................................................................................... 14
3.1.4.1.1.1 tns:SyncFolderHierarchySoapIn Message ...................................... 15
3.1.4.1.1.2 tns:SyncFolderHierarchySoapOut ................................................. 15
3.1.4.1.2 Elements ........................................................................................ 16
3.1.4.1.2.1 SyncFolderHierarchy Element ...................................................... 16
3.1.4.1.2.2 SyncFolderHierarchyResponse Element ......................................... 16
3.1.4.1.3 Complex Types ............................................................................... 16
3.1.4.1.3.1 t:SyncFolderHierarchyChangesType Complex Type ......................... 17
3.1.4.1.3.2 t:SyncFolderHierarchyCreateOrUpdateType Complex Type .............. 17
3.1.4.1.3.3 t:SyncFolderHierarchyDeleteType Complex Type ............................ 18
3.1.4.1.3.4 m:SyncFolderHierarchyResponseMessageType Complex Type .......... 19
3.1.4.1.3.5 m:SyncFolderHierarchyResponseType Complex Type ...................... 20
3.1.4.1.3.6 m:SyncFolderHierarchyType Complex Type ................................... 20
3.1.4.1.4 Simple Types .................................................................................. 21
3.1.4.1.5 Attributes ....................................................................................... 21
3.1.4.1.6 Groups ........................................................................................... 21
3.1.4.1.7 Attribute Groups.............................................................................. 21
3.1.4.2 SyncFolderItems ................................................................................... 21
3.1.4.2.1 Messages ....................................................................................... 21
3.1.4.2.1.1 tns:SyncFolderItemsSoapIn Message ........................................... 22
3.1.4.2.1.2 tns:SyncFolderItemsSoapOut ...................................................... 22
3.1.4.2.2 Elements ........................................................................................ 23
4 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
3.1.4.2.2.1 SyncFolderItems Element ........................................................... 23
3.1.4.2.2.2 SyncFolderItemsResponse Element .............................................. 23
3.1.4.2.3 Complex Types ............................................................................... 23
3.1.4.2.3.1 t:ArrayOfBaseItemIdsType Complex Type ..................................... 24
3.1.4.2.3.2 t:SyncFolderItemsChangesType Complex Type .............................. 24
3.1.4.2.3.3 t:SyncFolderItemsCreateOrUpdateType Complex Type ................... 25
3.1.4.2.3.4 t:SyncFolderItemsDeleteType Complex Type ................................. 27
3.1.4.2.3.5 t:SyncFolderItemsReadFlagType Complex Type ............................. 27
3.1.4.2.3.6 m:SyncFolderItemsResponseMessageType Complex Type ............... 28
3.1.4.2.3.7 m:SyncFolderItemsResponseType Complex Type ........................... 28
3.1.4.2.3.8 m:SyncFolderItemsType Complex Type ........................................ 29
3.1.4.2.4 Simple Types .................................................................................. 30
3.1.4.2.4.1 t:MaxSyncChangesReturnedType Simple Type ............................... 30
3.1.4.2.4.2 t:SyncFolderItemsScopeType Simple Type .................................... 30
3.1.4.2.5 Attributes ....................................................................................... 31
3.1.4.2.6 Groups ........................................................................................... 31
3.1.4.2.7 Attribute Groups.............................................................................. 31
3.1.5 Timer Events .............................................................................................. 31
3.1.6 Other Local Events ...................................................................................... 31
4 Protocol Examples ................................................................................................. 32
4.1 SyncFolderHierarchy Operation .......................................................................... 32
4.2 SyncFolderItems Operation ............................................................................... 33
5 Security ................................................................................................................. 35
5.1 Security Considerations for Implementers ........................................................... 35
5.2 Index of Security Parameters ............................................................................ 35
6 Appendix A: Full WSDL .......................................................................................... 36
7 Appendix B: Full XML Schema ................................................................................ 38
7.1 Messages Schema ............................................................................................ 38
7.2 Types Schema ................................................................................................. 39
8 Appendix C: Product Behavior ............................................................................... 42
9 Change Tracking .................................................................................................... 43
10 Index ..................................................................................................................... 44
5 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
1 Introduction
The Mailbox Contents Synchronization Web Service Protocol is used for providing the necessary
information to keep a local message store synchronized with the contents of a mailbox on the
server. Clients use the SOAP protocol, as described in [SOAP1.1], to contact the synchronization
service.
Sections 1.5, 1.8, 1.9, 2, and 3 of this specification are normative. All other sections and examples in
this specification are informative.
1.1 Glossary
endpoint: A communication port that is exposed by an application server for a specific shared
service and to which messages can be addressed.
folder associated information (FAI): A collection of Message objects that are stored in a Folder
object and are typically hidden from view by email applications. An FAI Message object is used
to store a variety of settings and auxiliary data, including forms, views, calendar options,
favorites, and category lists.
Hypertext Transfer Protocol Secure (HTTPS): An extension of HTTP that securely encrypts and
decrypts web page requests. In some older protocols, "Hypertext Transfer Protocol over Secure
Sockets Layer" is still used (Secure Sockets Layer has been deprecated). For more information,
see [SSL3] and [RFC5246].
mailbox: A message store that contains email, calendar items, and other Message objects for a
single recipient.
message store: A unit of containment for a single hierarchy of Folder objects, such as a mailbox
or public folders.
Sent Items folder: A special folder that is the default location for storing copies of Message
objects after they are submitted or sent.
SOAP action: The HTTP request header field used to indicate the intent of the SOAP request,
using a URI value. See [SOAP1.1] section 6.1.1 for more information.
SOAP body: A container for the payload data being delivered by a SOAP message to its recipient.
See [SOAP1.2-1/2007] section 5.3 for more information.
6 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
SOAP message: An XML document consisting of a mandatory SOAP envelope, an optional SOAP
header, and a mandatory SOAP body. See [SOAP1.2-1/2007] section 5 for more information.
Uniform Resource Locator (URL): A string of characters in a standardized format that identifies
a document or resource on the World Wide Web. The format is as specified in [RFC1738].
web server: A server computer that hosts websites and responds to requests from applications.
Web Services Description Language (WSDL): An XML format for describing network services
as a set of endpoints that operate on messages that contain either document-oriented or
procedure-oriented information. The operations and messages are described abstractly and are
bound to a concrete network protocol and message format in order to define an endpoint.
Related concrete endpoints are combined into abstract endpoints, which describe a network
service. WSDL is extensible, which allows the description of endpoints and their messages
regardless of the message formats or network protocols that are used.
WSDL message: An abstract, typed definition of the data that is communicated during a WSDL
operation [WSDL]. Also, an element that describes the data being exchanged between web
service providers and clients.
WSDL port type: A named set of logically-related, abstract Web Services Description
Language (WSDL) operations and messages.
XML namespace: A collection of names that is used to identify elements, types, and attributes in
XML documents identified in a URI reference [RFC3986]. A combination of XML namespace and
local name allows XML documents to use elements, types, and attributes that have the same
names but come from different sources. For more information, see [XMLNS-2ED].
XML schema: A description of a type of XML document that is typically expressed in terms of
constraints on the structure and content of documents of that type, in addition to the basic
syntax constraints that are imposed by XML itself. An XML schema provides a view of a
document type at a relatively high level of abstraction.
MAY, SHOULD, MUST, SHOULD NOT, MUST NOT: These terms (in all caps) are used as defined
in [RFC2119]. All statements of optional behavior use either MAY, SHOULD, or SHOULD NOT.
1.2 References
Links to a document in the Microsoft Open Specifications library point to the correct section in the
most recently published version of the referenced document. However, because individual documents
in the library are not updated at the same time, the section numbers in the documents may not
match. You can confirm the correct section numbering by checking the Errata.
We conduct frequent surveys of the normative references to assure their continued availability. If you
have any issue with finding a normative reference, please contact dochelp@microsoft.com. We will
assist you in finding the relevant information.
[MS-OXWSDLIST] Microsoft Corporation, "Distribution List Creation and Usage Web Service Protocol".
7 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
[MS-OXWSFOLD] Microsoft Corporation, "Folders and Folder Permissions Web Service Protocol".
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC
2119, March 1997, http://www.rfc-editor.org/rfc/rfc2119.txt
[RFC2616] Fielding, R., Gettys, J., Mogul, J., et al., "Hypertext Transfer Protocol -- HTTP/1.1", RFC
2616, June 1999, http://www.rfc-editor.org/rfc/rfc2616.txt
[RFC2818] Rescorla, E., "HTTP Over TLS", RFC 2818, May 2000, http://www.rfc-
editor.org/rfc/rfc2818.txt
[RFC3066] Alvestrand, H., "Tags for the Identification of Languages", BCP 47, RFC 3066, January
2001, http://www.ietf.org/rfc/rfc3066.txt
[SOAP1.1] Box, D., Ehnebuske, D., Kakivaya, G., et al., "Simple Object Access Protocol (SOAP) 1.1",
W3C Note, May 2000, http://www.w3.org/TR/2000/NOTE-SOAP-20000508/
[WSDL] Christensen, E., Curbera, F., Meredith, G., and Weerawarana, S., "Web Services Description
Language (WSDL) 1.1", W3C Note, March 2001, http://www.w3.org/TR/2001/NOTE-wsdl-20010315
[WSIBASIC] Ballinger, K., Ehnebuske, D., Gudgin, M., et al., Eds., "Basic Profile Version 1.0", Final
Material, April 2004, http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html
[XMLNS] Bray, T., Hollander, D., Layman, A., et al., Eds., "Namespaces in XML 1.0 (Third Edition)",
W3C Recommendation, December 2009, http://www.w3.org/TR/2009/REC-xml-names-20091208/
[XMLSCHEMA1] Thompson, H., Beech, D., Maloney, M., and Mendelsohn, N., Eds., "XML Schema Part
1: Structures", W3C Recommendation, May 2001, http://www.w3.org/TR/2001/REC-xmlschema-1-
20010502/
[XMLSCHEMA2] Biron, P.V., Ed. and Malhotra, A., Ed., "XML Schema Part 2: Datatypes", W3C
Recommendation, May 2001, http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/
1.3 Overview
The Mailbox Contents Synchronization Web Service Protocol enables clients to synchronize a local
message store with the contents of a mailbox on a server. This protocol provides operations to
return synchronization information for mailbox folders and the items in those folders. It also provides
8 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
synchronization states so that clients can request synchronization changes from the last
synchronization request.
A client that implements this protocol can use the Autodiscover Publishing and Lookup SOAP-Based
Web Service Protocol, as described in [MS-OXWSADISC], or the Autodiscover Publishing and Lookup
Protocol, as described in [MS-OXDSCLI], to identify the target endpoint to use for each operation.
This protocol uses the SOAP Protocol, as described in [SOAP1.1], to specify the structure information
exchanged between the client and server. This protocol uses the XML schema, as described in
[XMLSCHEMA1] and [XMLSCHEMA2], to describe the message content sent to and from the server.
The Mailbox Synchronization Web Service Protocol uses SOAP over HTTP, as described in [RFC2616],
and SOAP over HTTPS, as described in [RFC2818], as shown in the following layering diagram.
The synchronized items are managed by using one of the following protocols:
For conceptual background information and overviews of the relationships and interactions between
this and other protocols, see [MS-OXPROTO].
1.5 Prerequisites/Preconditions
The endpoint URL that is returned by either the Autodiscover Publishing Lookup SOAP-Based Web
Service Protocol, as described in [MS-OXWSADISC], or the Autodiscover Publishing and Lookup
Protocol, as described in [MS-OXDSCLI], is required to form the HTTP request to the Web server that
hosts this protocol. The operations that this protocol defines cannot be accessed unless the correct
endpoint is identified in the HTTP Web requests that target this protocol.
9 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
1.6 Applicability Statement
This protocol is applicable to client applications that use Web services to synchronize a local message
store with mailbox data on a server.
Supported Transports: This protocol uses SOAP 1.1, as specified in section 2.1.
Protocol Versions: This protocol specifies only one WSDL port type version. The WSDL version
of the request is identified by using the t:RequestServerVersion element, as described in [MS-
OXWSCDATA] section 2.2.3.9, and the version of the server responding to the request is identified
by using the t:ServerVerstionInfo element, as described in [MS-OXWSCDATA] section 2.2.3.10.
Security and Authentication Methods: This protocol relies on the Web server that is hosting it
to perform authentication.
Localization: None.
None.
None.
10 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
2 Messages
In the following sections, the schema definition might differ from the processing rules imposed by the
protocol. The WSDL in this specification provides a base description of the protocol. The schema in
this specification provides a base description of the message syntax. The text that specifies the WSDL
and schema might specify restrictions that reflect actual protocol behavior. For example, the schema
definition might allow for an element to be empty, null, or not present but the behavior of the
protocol as specified restricts the same elements to being non-empty, not null, or present.
2.1 Transport
The SOAP version supported is SOAP 1.1. For details, see [SOAP1.1].
This protocol relies on the Web server that hosts the application to perform authentication. The
protocol MUST support SOAP over HTTP, as specified in [RFC2616]. The protocol SHOULD use secure
communications via HTTPS, as defined in [RFC2818]
This section contains common definitions that are used by this protocol. The syntax of the definitions
uses XML schema as defined in [XMLSCHEMA1] and [XMLSCHEMA2], and Web Services
Description Language (WSDL) as defined in [WSDL].
2.2.1 Namespaces
This specification defines and references various XML namespaces using the mechanisms specified in
[XMLNS]. Although this specification associates a specific XML namespace prefix for each XML
namespace that is used, the choice of any particular XML namespace prefix is implementation-specific
and not significant for interoperability.
tns http://schemas.microsoft.com/exchange/services/2006/messages
t http://schemas.microsoft.com/exchange/services/2006/types
m http://schemas.microsoft.com/exchange/services/2006/messages
xs http://www.w3.org/2001/XMLSchema [XMLSCHEMA1]
2.2.2 Messages
This specification does not define any common WSDL message definitions.
2.2.3 Elements
This specification does not define any common XML schema element definitions.
11 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
2.2.4 Complex Types
This specification does not define any common XML schema complex type definitions.
This specification does not define any common XML schema simple type definitions.
2.2.6 Attributes
This specification does not define any common XML schema attribute definitions.
2.2.7 Groups
This specification does not define any common XML schema group definitions.
This specification does not define any common XML schema attribute group definitions.
This specification does not define any common XML data structures.
12 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
3 Protocol Details
The client side of this protocol is simply a pass-through. That is, no additional timers or other state is
required on the client side of this protocol. Calls made by the higher-layer protocol or application are
passed directly to the transport, and the results that are returned by the transport are passed directly
back to the higher-layer protocol or application.
The Mailbox Contents Synchronization Web Service Protocol defines a single port type with two
operations. These operations enable client implementations to synchronize folders in a mailbox and
to synchronize an item within a mailbox folder.
This section describes a conceptual model of possible data organization that an implementation
maintains to participate in this protocol. The described organization is provided to facilitate the
explanation of how the protocol behaves. This document does not mandate that implementations
adhere to this model as long as their external behavior is consistent with that specified in this
document.
This protocol enables client applications either to request complete synchronization information from
the server or to request incremental synchronization from the last synchronization information
request. If the optional SyncState element of the SyncFolderHierarchyType complex type (section
3.1.4.1.3.6) is included in a SyncFolderHierarchy operation (section 3.1.4.1) request, or if the
SyncState element of the SyncFolderItemsType complex type (section 3.1.4.2.3.8) is included in a
SyncFolderItems operation (section 3.1.4.2), the server MUST return incremental synchronization
information from the last synchronization request.
The contents of the SyncState elements are opaque to the client application; the client uses either
the SyncState element of the SyncFolderHierarchyResponseMessageType complex type (section
3.1.4.1.3.4) that was returned by the previous SyncFolderHierarchy operation request, or the
SyncState element of the SyncFolderItemsResponseMessageType complex type (section
3.1.4.2.3.6).
Client applications that use incremental synchronization for folder hierarchy synchronization MUST
store the contents of the SyncState element of the SyncFolderHierarchyResponseMessageType
complex type for subsequent requests.
Client applications that use incremental synchronization for item synchronization MUST store the
contents of the SyncState element of the SyncFolderItemsResponseMessageType complex type
for subsequent requests.
3.1.2 Timers
None
3.1.3 Initialization
None.
13 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Operation Description
SyncFolderHierarchy (section 3.1.4.1) Synchronizes the hierarchical list of folders in the mailbox.
3.1.4.1 SyncFolderHierarchy
The following is the WSDL port type specification of the SyncFolderHierarchy operation.
<wsdl:operation name="SyncFolderHierarchy">
<wsdl:input message="tns:SyncFolderHierarchySoapIn" />
<wsdl:output message="tns:SyncFolderHierarchySoapOut" />
</wsdl:operation>
<wsdl:operation name="SyncFolderHierarchy">
<soap:operation
soapAction="http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderHierarchy"
/>
<wsdl:input>
<soap:header message="tns:SyncFolderHierarchySoapIn" part="Impersonation"
use="literal"></soap:header>
<soap:header message="tns:SyncFolderHierarchySoapIn" part="MailboxCulture"
use="literal"/>
<soap:header message="tns:SyncFolderHierarchySoapIn" part="RequestVersion"
use="literal"/>
<soap:body parts="request" use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body parts="SyncFolderHierarchyResult" use="literal" />
<soap:header message="tns:SyncFolderHierarchySoapOut" part="ServerVersion"
use="literal"/>
</wsdl:output>
</wsdl:operation>
3.1.4.1.1 Messages
The WSDL message definitions listed in the following table are specific to this operation.
Message Description
SyncFolderHierarchySoapOut Specifies the SOAP message that is returned by the server in response to a
request for synchronization information.
14 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
3.1.4.1.1.1 tns:SyncFolderHierarchySoapIn Message
<wsdl:message name="SyncFolderHierarchySoapIn">
<wsdl:part name="request" element="tns:SyncFolderHierarchy" />
<wsdl:part name="Impersonation" element="t:ExchangeImpersonation"/>
<wsdl:part name="MailboxCulture" element="t:MailboxCulture"/>
<wsdl:part name="RequestVersion" element="t:RequestServerVersion"/>
</wsdl:message>
The SyncFolderHierarchySoapIn WSDL message is the input message for the following SOAP
action: http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderHierarchy.
The SyncFolderHierarchySoapIn WSDL message contains four parts, as listed and described in the
following table.
request tns:SyncFolderHierarchy (section Specifies the SOAP body of the request to return
3.1.4.1.2.1) synchronization information.
Impersonation t:ExchangeImpersonation ([MS- Specifies a SOAP header that identifies the user
OXWSCDATA] section 2.2.3.3) whom the client application is impersonating.
MailboxCulture t:MailboxCulture ([MS-OXWSCDATA] Specifies a SOAP header that identifies the culture
section 2.2.3.6) to use for accessing the mailbox. The cultures
are defined by [RFC3066].
3.1.4.1.1.2 tns:SyncFolderHierarchySoapOut
<wsdl:message name="SyncFolderHierarchySoapOut">
<wsdl:part name="SyncFolderHierarchyResult" element="tns:SyncFolderHierarchyResponse" />
<wsdl:part name="ServerVersion" element="t:ServerVersionInfo"/>
</wsdl:message>
The SyncFolderHierarchySoapOut WSDL message is the output message for the following SOAP
action: http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderHierarchy.
The SyncFolderHierarchySoapOut WSDL message contains two parts, as listed and described in the
following table.
15 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Part name Element/type Description
3.1.4.1.2 Elements
The XML schema element definitions listed in the following table are specific to this operation.
Element Description
The SyncFolderHierarchy element specifies the base element for a SyncFolderHierarchy operation
(section 3.1.4.1).
<xs:element name="SyncFolderHierarchy"
type="m:SyncFolderHierarchyType"
/>
<xs:element name="SyncFolderHierarchyResponse"
type="m:SyncFolderHierarchyResponseType"
/>
The XML schema complex type definitions listed in the following table are specific to this operation.
16 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Complex type Description
SyncFolderHierarchy operation.
<xs:complexType name="SyncFolderHierarchyChangesType">
<xs:sequence>
<xs:choice
maxOccurs="unbounded"
minOccurs="0"
>
<xs:element name="Create"
type="t:SyncFolderHierarchyCreateOrUpdateType"
/>
<xs:element name="Update"
type="t:SyncFolderHierarchyCreateOrUpdateType"
/>
<xs:element name="Delete"
type="t:SyncFolderHierarchyDeleteType"
/>
</xs:choice>
</xs:sequence>
</xs:complexType>
The following table lists the child elements of the SyncFolderHierarchyChangesType complex type.
<xs:complexType name="SyncFolderHierarchyCreateOrUpdateType">
17 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
<xs:choice>
<xs:element name="Folder"
type="t:FolderType"
/>
<xs:element name="CalendarFolder"
type="t:CalendarFolderType"
/>
<xs:element name="ContactsFolder"
type="t:ContactsFolderType"
/>
<xs:element name="SearchFolder"
type="t:SearchFolderType"
/>
<xs:element name="TasksFolder"
type="t:TasksFolderType"
/>
</xs:choice>
</xs:complexType>
The SyncFolderHierarchyDeleteType complex type specifies a folder to delete from the client
message store.
<xs:complexType name="SyncFolderHierarchyDeleteType">
<xs:sequence>
<xs:element name="FolderId"
type="t:FolderIdType"
/>
</xs:sequence>
</xs:complexType>
The following table lists the child elements of the SyncFolderHierarchyDeleteType complex type.
FolderId t:FolderIdType ([MS-OXWSCDATA] Specifies the identifier of the folder to delete from the
18 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Element Type Description
<xs:complexType name="SyncFolderHierarchyResponseMessageType">
<xs:complexContent>
<xs:extension
base="m:ResponseMessageType"
>
<xs:sequence>
<xs:element name="SyncState"
type="xs:string"
minOccurs="0"
/>
<xs:element name="IncludesLastFolderInRange"
type="xs:boolean"
minOccurs="0"
/>
<xs:element name="Changes"
type="t:SyncFolderHierarchyChangesType"
minOccurs="0"
/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
19 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
3.1.4.1.3.5 m:SyncFolderHierarchyResponseType Complex Type
<xs:complexType name="SyncFolderHierarchyResponseType">
<xs:complexContent>
<xs:extension
base="m:BaseResponseMessageType"
/>
</xs:complexContent>
</xs:complexType>
The SyncFolderHierarchyType complex type specifies a request for synchronization information for
folders in the server message store. The SyncFolderHierarchyType complex type extends the
BaseRequestType complex type ([MS-OXWSCDATA] section 2.2.4.17).
<xs:complexType name="SyncFolderHierarchyType">
<xs:complexContent>
<xs:extension
base="m:BaseRequestType"
>
<xs:sequence>
<xs:element name="FolderShape"
type="t:FolderResponseShapeType"
/>
<xs:element name="SyncFolderId"
type="t:TargetFolderIdType"
minOccurs="0"
/>
<xs:element name="SyncState"
type="xs:string"
minOccurs="0"
/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
The following table lists the child elements of the SyncFolderHierarchyType complex type.
FolderShape t:FolderResponseShapeType ([MS- Specifies the properties that are returned in the
OXWSCDATA] section 2.2.4.37) response.
SyncFolderId t:TargetFolderIdType ([MS- Specifies the target folder for the operation. This
OXWSFOLD] section 2.2.4.16) element is optional.
20 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
3.1.4.1.4 Simple Types
None.
3.1.4.1.5 Attributes
None.
3.1.4.1.6 Groups
None.
None.
3.1.4.2 SyncFolderItems
The following is the WSDL port type specification of the SyncFolderItems operation.
<wsdl:operation name="SyncFolderItems">
<wsdl:input message="tns:SyncFolderItemsSoapIn" />
<wsdl:output message="tns:SyncFolderItemsSoapOut" />
</wsdl:operation>
<wsdl:operation name="SyncFolderItems">
<soap:operation
soapAction="http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderItems" />
<wsdl:input>
<soap:header message="tns:SyncFolderItemsSoapIn" part="Impersonation"
use="literal"></soap:header>
<soap:header message="tns:SyncFolderItemsSoapIn" part="MailboxCulture" use="literal"/>
<soap:header message="tns:SyncFolderItemsSoapIn" part="RequestVersion" use="literal"/>
<soap:body parts="request" use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body parts="SyncFolderItemsResult" use="literal" />
<soap:header message="tns:SyncFolderItemsSoapOut" part="ServerVersion" use="literal"/>
</wsdl:output>
</wsdl:operation>
3.1.4.2.1 Messages
The WSDL message definitions listed in the following table are specific to this operation.
Message Description
SyncFolderItemsSoapIn Specifies the SOAP message that requests item synchronization information.
SyncFolderItemSoapOut Specifies the SOAP message that is returned by the server in response.
21 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
3.1.4.2.1.1 tns:SyncFolderItemsSoapIn Message
<wsdl:message name="SyncFolderItemsSoapIn">
<wsdl:part name="request" element="tns:SyncFolderItems" />
<wsdl:part name="Impersonation" element="t:ExchangeImpersonation"/>
<wsdl:part name="MailboxCulture" element="t:MailboxCulture"/>
<wsdl:part name="RequestVersion" element="t:RequestServerVersion"/>
</wsdl:message>
The SyncFolderItemsSoapIn WSDL message is the input message for the SOAP action
http://schemas.microsoft.com/exchange/services/2006/messages/.
The parts of the SyncFolderItemsSoapIn WSDL message are described in the following table.
request tns:SyncFolderItems (section Specifies the SOAP body of the request for item
3.1.4.2.2.1) synchronization information.
Impersonation t:ExchangeImpersonation ([MS- Specifies a SOAP header that identifies the user
OXWSCDATA] section 2.2.3.3) whom the client application is impersonating.
MailboxCulture t:MailboxCulture ([MS-OXWSCDATA] Specifies a SOAP header that identifies the culture
section 2.2.3.6) to use for accessing the mailbox. The cultures
are defined by [RFC3066].
3.1.4.2.1.2 tns:SyncFolderItemsSoapOut
<wsdl:message name="SyncFolderItemsSoapOut">
<wsdl:part name="SyncFolderItemsResult" element="tns:SyncFolderItemsResponse" />
<wsdl:part name="ServerVersion" element="t:ServerVersionInfo"/>
</wsdl:message>
The SyncFolderItemsSoapOut WSDL message is the output message for the following SOAP
action: http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderItems.
The SyncFolderItemsSoapOut WSDL message contains the two parts listed in the following table.
22 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
3.1.4.2.2 Elements
The XML schema element definitions listed in the following table are specific to this operation.
Element Description
SyncFolderItems Specifies the base element for requests to the SyncFolderItems operation.
SyncFolderItemsResponse Specifies the base element for responses from the SyncFolderItems operation.
The SyncFolderItems element specifies the base element for the SyncFolderItems operation.
<xs:element name="SyncFolderItems"
type="m:SyncFolderItemsType"
/>
The SyncFolderItemsResponse element specifies the response message for the SyncFolderItems
operation.
<xs:element name="SyncFolderItemsResponse"
type="m:SyncFolderItemsResponseType"
/>
The following XML schema complex type definitions are specific to this operation.
SyncFolderItemsResponseMessageType Specifies the status and results from a single call to the
SyncFolderItems operation.
23 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
3.1.4.2.3.1 t:ArrayOfBaseItemIdsType Complex Type
The ArrayOfBaseItemIdsType complex type specifies zero or more ItemIdType types ([MS-
OXWSCORE] section 2.2.4.25).
<xs:complexType name="ArrayOfBaseItemIdsType">
<xs:choice
maxOccurs="unbounded"
minOccurs="0"
>
<xs:element name="ItemId"
type="t:ItemIdType"
/>
</xs:choice>
</xs:complexType>
The following table lists the child elements of the ArrayOfBaseItemIdsType complex type.
ItemId t:ItemIdType ([MS-OXWSCORE] section Specifies the item identifier of the array
2.2.4.25) member.
The SyncFolderItemsChangesType complex type specifies a sequenced array of change types that
describe the differences between the items on the client and the items on the server.
<xs:complexType name="SyncFolderItemsChangesType">
<xs:sequence>
<xs:choice
maxOccurs="unbounded"
minOccurs="0"
>
<xs:element name="Create"
type="t:SyncFolderItemsCreateOrUpdateType"
/>
<xs:element name="Update"
type="t:SyncFolderItemsCreateOrUpdateType"
/>
<xs:element name="Delete"
type="t:SyncFolderItemsDeleteType"
/>
<xs:element name="ReadFlagChange"
type="t:SyncFolderItemsReadFlagType"
/>
</xs:choice>
</xs:sequence>
</xs:complexType>
The following table lists the child elements of the SyncFolderItemsChangesType complex type.
24 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Element Type Description
<xs:complexType name="SyncFolderItemsCreateOrUpdateType">
<xs:choice>
<xs:element name="Item"
type="t:ItemType"
/>
<xs:element name="Message"
type="t:MessageType"
/>
<xs:element name="CalendarItem"
type="t:CalendarItemType"
/>
<xs:element name="Contact"
type="t:ContactItemType"
/>
<xs:element name="DistributionList"
type="t:DistributionListType"
/>
<xs:element name="MeetingMessage"
type="t:MeetingMessageType"
/>
<xs:element name="MeetingRequest"
type="t:MeetingRequestMessageType"
/>
<xs:element name="MeetingResponse"
type="t:MeetingResponseMessageType"
/>
<xs:element name="MeetingCancellation"
type="t:MeetingCancellationMessageType"
/>
<xs:element name="Task"
type="t:TaskType"
/>
<xs:element name="PostItem"
type="t:PostItemType"
/>
<xs:element name="RoleMember"
type="t:RoleMemberItemType"
/>
<xs:element name="Network"
type="t:NetworkItemType"
/>
25 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
<xs:element name="Person"
type="t:AbchPersonItemType"
/>
<xs:element name="Booking"
type="t:BookingItemType"
/>
</xs:choice>
</xs:complexType>
The following table lists the child elements of the SyncFolderItemsCreateOrUpdateType complex
type.
26 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Element Type Description
The SyncFolderItemsDeleteType complex type specifies an item to delete from the client message
store.
<xs:complexType name="SyncFolderItemsDeleteType">
<xs:sequence>
<xs:element name="ItemId"
type="t:ItemIdType"
/>
</xs:sequence>
</xs:complexType>
The following table lists the child elements of the SyncFolderItemsDeleteType complex type.
ItemId t:ItemIdType ([MS-OXWSCORE] section Specifies the identifier of the item to delete from the
2.2.4.25) client message store.
The SyncFolderItemsReadFlagType complex type specifies whether an item on the server has been
read.
<xs:complexType name="SyncFolderItemsReadFlagType">
<xs:sequence>
<xs:element name="ItemID"
type="t:ItemIdType"
/>
<xs:element name="IsRead"
type="xs:boolean"
/>
</xs:sequence>
</xs:complexType>
The following table lists the child elements of the SyncFolderItemsReadFlagType complex type.
ItemID t:ItemIdType ([MS-OXWSCORE] section Specifies the identifier of the read item.
2.2.4.25)
IsRead xs:boolean ([XMLSCHEMA2]) Specifies a Boolean value that indicates whether the
item has been read.
27 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
3.1.4.2.3.6 m:SyncFolderItemsResponseMessageType Complex Type
<xs:complexType name="SyncFolderItemsResponseMessageType">
<xs:complexContent>
<xs:extension
base="m:ResponseMessageType"
>
<xs:sequence>
<xs:element name="SyncState"
type="xs:string"
minOccurs="0"
/>
<xs:element name="IncludesLastItemInRange"
type="xs:boolean"
minOccurs="0"
/>
<xs:element name="Changes"
type="t:SyncFolderItemsChangesType"
minOccurs="0"
/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="SyncFolderItemsResponseType">
<xs:complexContent>
<xs:extension
28 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
base="m:BaseResponseMessageType"
/>
</xs:complexContent>
</xs:complexType>
The SyncFolderItemsType complex type specifies a request for synchronization information for
items in the server message store. The SyncFolderItemsType complex type extends the
BaseRequestType complex type ([MS-OXWSCDATA] section 2.2.4.17).
<xs:complexType name="SyncFolderItemsType">
<xs:complexContent>
<xs:extension
base="m:BaseRequestType"
>
<xs:sequence>
<xs:element name="ItemShape"
type="t:ItemResponseShapeType"
/>
<xs:element name="SyncFolderId"
type="t:TargetFolderIdType"
/>
<xs:element name="SyncState"
type="xs:string"
minOccurs="0"
/>
<xs:element name="Ignore"
type="t:ArrayOfBaseItemIdsType"
minOccurs="0"
/>
<xs:element name="MaxChangesReturned"
type="t:MaxSyncChangesReturnedType"
/>
<xs:element name="SyncScope"
type="t:SyncFolderItemsScopeType"
minOccurs="0"
/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
The following table lists the child elements of the SyncFolderItemsType complex type.
29 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
Element Type Description
The XML schema simple type definitions listed in the following table are specific to this operation.
The MaxSyncChangesReturnedType simple type specifies the size of the range of responses
returned by an item synchronization operation.
<xs:simpleType name="MaxSyncChangesReturnedType">
<xs:restriction
base="xs:int"
>
<xs:minInclusive
value="1"
/>
<xs:maxInclusive
value="512"
/>
</xs:restriction>
</xs:simpleType>
The SyncFolderItemsScopeType simple type specifies whether a synchronization request is only for
items in the folder or includes folder associated information (FAI) as well.
<xs:simpleType name="SyncFolderItemsScopeType">
<xs:restriction
base="xs:string"
>
<xs:enumeration
value="NormalItems"
/>
30 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
<xs:enumeration
value="NormalAndAssociatedItems"
/>
</xs:restriction>
</xs:simpleType>
The values listed in the following table are defined by the SyncFolderItemsScopeType simple type,
Value Description
NormalAndAssociatedItems Specifies that folder associated information is returned along with the items in the
folder.
3.1.4.2.5 Attributes
None.
3.1.4.2.6 Groups
None.
None.
None.
None.
31 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
4 Protocol Examples
In this example, the SyncState element data, encoded with base64 encoding, has been shortened
to preserve readability.
The following example shows a successful response to the SyncFolderHierarchy operation request.
In this example, a new folder has been synchronized. In this example, the SyncState element data,
encoded with base64 encoding, and the folder identifier data have been shortened to preserve
readability.
32 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
<t:TotalCount>0</t:TotalCount>
<t:ChildFolderCount>0</t:ChildFolderCount>
<t:UnreadCount>0</t:UnreadCount>
</t:Folder>
</t:Create>
</m:Changes>
</m:SyncFolderHierarchyResponseMessage>
</m:ResponseMessages>
</SyncFolderHierarchyResponse>
</soap:Body>
</soap:Envelope>
In this example the SyncState element data, encoded with base64 encoding, and the ItemId
element Id attribute have been shortened to preserve readability.
The following example shows a successful response to the SyncFolderItems operation request. A
meeting request is synchronized from the Sent Items folder. In this example the SyncState element
data, encoded with base64 encoding, and the ItemId element Id attribute have been shortened to
preserve readability.
33 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
</soap:Header>
<soap:Body>
<SyncFolderItemsResponse
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:SyncFolderItemsResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:SyncState>H4sIAAAAA=</m:SyncState>
<m:IncludesLastItemInRange>true</m:IncludesLastItemInRange>
<m:Changes>
<t:Create>
<t:MeetingRequest>
<t:ItemId Id="AQApAHRwA==" ChangeKey="CwAAABYA" />
<t:Subject>Budget Q3</t:Subject>
<t:Sensitivity>Normal</t:Sensitivity>
<t:IsOutOfDate>false</t:IsOutOfDate>
<t:HasBeenProcessed>true</t:HasBeenProcessed>
<t:ResponseType>NoResponseReceived</t:ResponseType>
<t:IntendedFreeBusyStatus>Busy</t:IntendedFreeBusyStatus>
<t:Start>2006-08-02T17:30:00Z</t:Start>
<t:End>2006-08-02T19:30:00Z</t:End>
<t:Location>Conference Room 2</t:Location>
<t:Organizer>
<t:Mailbox>
<t:Name>Dan Park</t:Name>
<t:EmailAddress>dpark@example.com</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType></t:Mailbox>
</t:Organizer>
</t:MeetingRequest>
</t:Create>
</m:Changes>
</m:SyncFolderItemsResponseMessage>
</m:ResponseMessages>
</SyncFolderItemsResponse>
</soap:Body>
</soap:Envelope>
34 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
5 Security
The Mailbox Contents Synchronization Web Service Protocol does not use any additional security
mechanisms.
None.
35 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
6 Appendix A: Full WSDL
The following table lists the XML files that are required to implement the functionality that is specified
in this document. The contents of each file are included in this section.
MS-OXWSSYNC- Contains the XML schema message definitions that are used in this 7.1
messages.xsd protocol.
MS-OXWSSYNC-types.xsd Contains the XML schema type definitions that are used in this 7.2
protocol.
These files have to be placed in a common folder in order for the WSDL to validate and operate. Also,
any schema files that are included in or imported into the MS-OXWSSYNC-types.xsd or MS-
OXWSSYNC-messages.xsd schema have to be placed in the common folder along with the files.
36 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
<wsdl:message name="SyncFolderItemsSoapOut">
<wsdl:part name="SyncFolderItemsResult" element="tns:SyncFolderItemsResponse" />
<wsdl:part name="ServerVersion" element="t:ServerVersionInfo"/>
</wsdl:message>
<wsdl:portType name="ExchangeServicePortType">
<wsdl:operation name="SyncFolderHierarchy">
<wsdl:input message="tns:SyncFolderHierarchySoapIn" />
<wsdl:output message="tns:SyncFolderHierarchySoapOut" />
</wsdl:operation>
<wsdl:operation name="SyncFolderItems">
<wsdl:input message="tns:SyncFolderItemsSoapIn" />
<wsdl:output message="tns:SyncFolderItemsSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ExchangeServiceBinding" type="tns:ExchangeServicePortType">
<wsdl:documentation>
<wsi:Claim conformsTo="http://ws-i.org/profiles/basic/1.0"
xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/"/>
</wsdl:documentation>
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="SyncFolderHierarchy">
<soap:operation
soapAction="http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderHierarchy"
/>
<wsdl:input>
<soap:header message="tns:SyncFolderHierarchySoapIn" part="Impersonation"
use="literal"></soap:header>
<soap:header message="tns:SyncFolderHierarchySoapIn" part="MailboxCulture"
use="literal"/>
<soap:header message="tns:SyncFolderHierarchySoapIn" part="RequestVersion"
use="literal"/>
<soap:body parts="request" use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body parts="SyncFolderHierarchyResult" use="literal" />
<soap:header message="tns:SyncFolderHierarchySoapOut" part="ServerVersion"
use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="SyncFolderItems">
<soap:operation
soapAction="http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderItems" />
<wsdl:input>
<soap:header message="tns:SyncFolderItemsSoapIn" part="Impersonation"
use="literal"></soap:header>
<soap:header message="tns:SyncFolderItemsSoapIn" part="MailboxCulture"
use="literal"/>
<soap:header message="tns:SyncFolderItemsSoapIn" part="RequestVersion"
use="literal"/>
<soap:body parts="request" use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body parts="SyncFolderItemsResult" use="literal" />
<soap:header message="tns:SyncFolderItemsSoapOut" part="ServerVersion"
use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
37 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
7 Appendix B: Full XML Schema
For ease of implementation, the following sections provide the full XML schema for this protocol.
These files have to be placed in a common folder in order for the WSDL to validate and operate. Also,
any schema files that are included in or imported into the MS-OXWSSYNC-types.xsd or MS-
OXWSSYNC-messages.xsd schemas have to be placed in the common folder along with the files listed
in the table.
This section contains the contents of the MS-OXWSSYNC-messages.xsd file and information about
additional files that this schema file requires to operate correctly.
MS-OXWSSYNC-messages.xsd includes the file listed in the following table. For the schema file to
operate correctly, this file has to be in the folder that contains the WSDL, types schema, and
messages schema files for this protocol.
38 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
</xs:complexType>
<xs:complexType name="SyncFolderHierarchyResponseType">
<xs:complexContent>
<xs:extension base="m:BaseResponseMessageType"/>
</xs:complexContent>
</xs:complexType>
<xs:element name="SyncFolderHierarchyResponse"
type="m:SyncFolderHierarchyResponseType"/>
<xs:complexType name="SyncFolderItemsType">
<xs:complexContent>
<xs:extension base="m:BaseRequestType">
<xs:sequence>
<xs:element name="ItemShape" type="t:ItemResponseShapeType"/>
<xs:element name="SyncFolderId" type="t:TargetFolderIdType"/>
<xs:element name="SyncState" type="xs:string" minOccurs="0"/>
<xs:element name="Ignore" type="t:ArrayOfBaseItemIdsType"
minOccurs="0"/>
<xs:element name="MaxChangesReturned"
type="t:MaxSyncChangesReturnedType"/>
<xs:element name="SyncScope" type="t:SyncFolderItemsScopeType"
minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="SyncFolderItems" type="m:SyncFolderItemsType"/>
<xs:complexType name="SyncFolderItemsResponseMessageType">
<xs:complexContent>
<xs:extension base="m:ResponseMessageType">
<xs:sequence>
<xs:element name="SyncState" type="xs:string" minOccurs="0"/>
<xs:element name="IncludesLastItemInRange" type="xs:boolean"
minOccurs="0"/>
<xs:element name="Changes" type="t:SyncFolderItemsChangesType"
minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="SyncFolderItemsResponseType">
<xs:complexContent>
<xs:extension base="m:BaseResponseMessageType"/>
</xs:complexContent>
</xs:complexType>
<xs:element name="SyncFolderItemsResponse" type="m:SyncFolderItemsResponseType"/>
</xs:schema>
This section contains the contents of the MS-OXWSSYNC-types.xsd file and information about
additional files that this schema file requires to operate correctly.
MS-OXWSSYNC-types.xsd includes the file listed in the following table. For the schema file to operate
correctly, this file has to be present in the folder that contains the WSDL, types schema, and
messages schema files for this protocol.
39 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
targetNamespace="http://schemas.microsoft.com/exchange/services/2006/types"
elementFormDefault="qualified" version="Exchange2016" id="types">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
<xs:include schemaLocation="MS-OXWSFOLD-types.xsd"/>
<xs:complexType name="ArrayOfBaseItemIdsType">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="ItemId" type="t:ItemIdType"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="SyncFolderHierarchyChangesType">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Create"
type="t:SyncFolderHierarchyCreateOrUpdateType"/>
<xs:element name="Update"
type="t:SyncFolderHierarchyCreateOrUpdateType"/>
<xs:element name="Delete" type="t:SyncFolderHierarchyDeleteType"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="MaxSyncChangesReturnedType">
<xs:restriction base="xs:int">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="512"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="SyncFolderHierarchyCreateOrUpdateType">
<xs:choice>
<xs:element name="Folder" type="t:FolderType"/>
<xs:element name="CalendarFolder" type="t:CalendarFolderType"/>
<xs:element name="ContactsFolder" type="t:ContactsFolderType"/>
<xs:element name="SearchFolder" type="t:SearchFolderType"/>
<xs:element name="TasksFolder" type="t:TasksFolderType"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="SyncFolderHierarchyDeleteType">
<xs:sequence>
<xs:element name="FolderId" type="t:FolderIdType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SyncFolderItemsChangesType">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Create" type="t:SyncFolderItemsCreateOrUpdateType"/>
<xs:element name="Update" type="t:SyncFolderItemsCreateOrUpdateType"/>
<xs:element name="Delete" type="t:SyncFolderItemsDeleteType"/>
<xs:element name="ReadFlagChange" type="t:SyncFolderItemsReadFlagType"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SyncFolderItemsDeleteType">
<xs:sequence>
<xs:element name="ItemId" type="t:ItemIdType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="SyncFolderItemsReadFlagType">
<xs:sequence>
<xs:element name="ItemId" type="t:ItemIdType"/>
<xs:element name="IsRead" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="SyncFolderItemsScopeType">
<xs:restriction base="xs:string">
<xs:enumeration value="NormalItems"/>
<xs:enumeration value="NormalAndAssociatedItems"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="SyncFolderItemsCreateOrUpdateType">
<xs:choice>
<xs:element name="Item" type="t:ItemType"/>
40 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
<xs:element name="Message" type="t:MessageType"/>
<xs:element name="CalendarItem" type="t:CalendarItemType"/>
<xs:element name="Contact" type="t:ContactItemType"/>
<xs:element name="DistributionList" type="t:DistributionListType"/>
<xs:element name="MeetingMessage" type="t:MeetingMessageType"/>
<xs:element name="MeetingRequest" type="t:MeetingRequestMessageType"/>
<xs:element name="MeetingResponse" type="t:MeetingResponseMessageType"/>
<xs:element name="MeetingCancellation"
type="t:MeetingCancellationMessageType"/>
<xs:element name="Task" type="t:TaskType"/>
<xs:element name="PostItem" type="t:PostItemType"/>
<xs:element name="RoleMember" type="t:RoleMemberItemType"/>
<xs:element name="Network" type="t:NetworkItemType"/>
</xs:choice>
</xs:complexType>
</xs:schema>
41 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
8 Appendix C: Product Behavior
The information in this specification is applicable to the following Microsoft products or supplemental
software. References to product versions include updates to those products.
Exceptions, if any, are noted in this section. If an update version, service pack or Knowledge Base
(KB) number appears with a product name, the behavior changed in that update. The new behavior
also applies to subsequent updates unless otherwise specified. If a product edition appears with the
product version, behavior is different in that product edition.
Unless otherwise specified, any statement of optional behavior in this specification that is prescribed
using the terms "SHOULD" or "SHOULD NOT" implies product behavior in accordance with the
SHOULD or SHOULD NOT prescription. Unless otherwise specified, the term "MAY" implies that the
product does not follow the prescription.
<1> Section 3.1.4.1.3.1: Microsoft Exchange Server 2007 Service Pack 3 (SP3) does not specify the
Delete element. All other versions of Exchange include this element.
<2> Section 3.1.4.2.3.3: The initial release of Exchange 2007 returns the item of type t:ItemType.
Microsoft Exchange Server 2007 Service Pack 1 (SP1) returns the item of type t:ItemType as a
t:MessageType type.
<3> Section 3.1.4.2.3.3: Exchange 2007, Exchange 2010, and Exchange 2013 do not support the
RoleMember element.
<4> Section 3.1.4.2.3.3: Exchange 2007, Exchange 2010, and Exchange 2013 do not support the
Network element.
<5> Section 3.1.4.2.3.3: Exchange 2007, Exchange 2010. and Exchange 2013 do not support the
Person element.
<6> Section 3.1.4.2.3.3: Exchange 2007, Exchange 2010. and Exchange 2013 do not support the
Booking element.
<7> Section 3.1.4.2.3.8: Exchange 2007 does not support the SyncScope element.
42 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
9 Change Tracking
This section identifies changes that were made to this document since the last release. Changes are
classified as Major, Minor, or None.
The revision class Major means that the technical content in the document was significantly revised.
Major changes affect protocol interoperability or implementation. Examples of major changes are:
The revision class Minor means that the meaning of the technical content was clarified. Minor changes
do not affect protocol interoperability or implementation. Examples of minor changes are updates to
clarify ambiguity at the sentence, paragraph, or table level.
The revision class None means that no new technical changes were introduced. Minor editorial and
formatting changes may have been made, but the relevant technical content is identical to the last
released version.
The changes made to this document are listed in the following table. For more information, please
contact dochelp@microsoft.com.
43 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
10 Index
A Messages
attribute groups 12
Abstract data model attributes 12
server 13 common data structures 12
Applicability 10 complex types 12
Attribute groups 12 elements 11
Attributes 12 enumerated 11
groups 12
C namespaces 11
simple types 12
Capability negotiation 10 syntax 11
Change tracking 43 transport 11
Common data structures 12
Complex types 12 N
D Namespaces 11
Normative references 7
Data model - abstract
server 13 O
E Operations
SyncFolderHierarchy 14
Events SyncFolderItems 21
local - server 31 Overview (synopsis) 8
timer - server 31
Examples P
SyncFolderHierarchy operation 32
SyncFolderItems operation 33 Parameters - security index 35
Preconditions 9
F Prerequisites 9
Product behavior 42
Fields - vendor-extensible 10 Protocol Details
Full WSDL 36 overview 13
Full XML schema 38
Messages Schema 38 R
Types Schema 39
References 7
G informative 8
normative 7
Glossary 6 Relationship to other protocols 9
Groups 12
S
I
Security
Implementer - security considerations 35 implementer considerations 35
Index of security parameters 35 parameter index 35
Informative references 8 Sequencing rules
Initialization server 13
server 13 Server
Introduction 6 abstract data model 13
initialization 13
L local events 31
message processing 13
Local events sequencing rules 13
server 31 SyncFolderHierarchy operation 14
SyncFolderItems operation 21
timer events 31
M
timers 13
Simple types 12
Message processing
Standards assignments 10
server 13
SyncFolderHierarchy operation example 32
44 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018
SyncFolderItems operation example 33
Syntax
messages - overview 11
Timer events
server 31
Timers
server 13
Tracking changes 43
Transport 11
Types
complex 12
simple 12
Vendor-extensible fields 10
Versioning 10
WSDL 36
XML schema 38
Messages Schema 38
Types Schema 39
45 / 45
[MS-OXWSSYNC] - v20181001
Mailbox Contents Synchronization Web Service Protocol
Copyright © 2018 Microsoft Corporation
Release: October 1, 2018