次の方法で共有


2.2.3.154 Responses

The Responses element is an optional child element of the Collection element in Sync command responses that contains responses to operations that are processed by the server. Each response is wrapped in an element with the same name as the operation, such as the Add element and the Change element. The response contains a status code and other information, depending on the operation.

All elements referenced in this section are defined in the AirSync namespace.

Command request/response

Parent elements

Child elements

Data type

Number allowed

Sync command response (section 2.2.1.21)

Collection (section 2.2.3.29.2)

Add (section 2.2.3.7.2), Fetch (section 2.2.3.67.2)

Change (section 2.2.3.24), Delete (section 2.2.3.42.2)

container ([MS-ASDTYPE] section 2.2)

0...1 (optional)

The Responses element appears only in responses that are sent from the server to the client. It is present only if the server has processed operation from the client. It is omitted otherwise (for example, if the client requested server changes but had no changes to send to the server). If present, it MUST include at least one child element.

The server is not required to send an individual response for every operation that is sent by the client. The client only receives responses for successful additions, successful fetches, successful changes that include an attachment being added, and failed changes and deletions. When the client does not receive a response, the client MUST assume that the operation succeeded unless informed otherwise.

Protocol Versions

The following table specifies the protocol versions that support this element. The client indicates the protocol version being used by setting either the MS-ASProtocolVersion header, as specified in [MS-ASHTTP] section 2.2.1.1.2.6, or the Protocol version field, as specified in [MS-ASHTTP] section 2.2.1.1.1.1, in the request.

Protocol version

Element support

2.5

Yes

12.0

Yes

12.1

Yes

14.0

Yes

14.1

Yes

16.0

Yes

16.1

Yes