11.01.2015 Views

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

0<br />

88<br />

<br />

text/plain<br />

<br />

<br />

<br />

0-2<br />

3<br />

<br />

<br />

<br />

4.22.2 Fetching an Item Based on Metadata<br />

When a document library is used to provide item or folder metadata, the client can retrieve a file<br />

within a document library by using the ItemOperations command (section 2.2.2.8) and indicating<br />

the documentlibrary:LinkId value (section 2.2.3.46) corresponding to the item.<br />

4.22.2.1 Request<br />

The following example shows an ItemOperations command request (section 2.2.2.8.2) sent from<br />

the client to the server to retrieve a file within a document library. The itemoperations:Range<br />

element (section 2.2.3.120.1) indicates that the client only requests bytes from 10 through 19 of<br />

the item returned in the response.<br />

<br />

<br />

<br />

DocumentLibrary<br />

\\somehost\directory\<br />

<strong>ActiveSync</strong>DocumentFetch.txt<br />

<br />

10-19<br />

<br />

<br />

<br />

4.22.2.2 Response<br />

The following example shows the ItemOperations command response (section 2.2.2.8.3) that<br />

contains the requested item. The binary content of the file is encoded with base64 encoding and is<br />

included in the itemoperations:Data element (section 2.2.3.37.1).<br />

<br />

<br />

1<br />

<br />

<br />

1<br />

\\somehost\directory\<br />

[<strong>MS</strong>-<strong>ASCMD</strong>] — v20110315<br />

<strong>ActiveSync</strong> <strong>Command</strong> <strong>Reference</strong> <strong>Protocol</strong> <strong>Specification</strong><br />

Copyright © 2011 Microsoft Corporation.<br />

Release: Tuesday, March 15, 2011<br />

335 / 369

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!