4.2 Retrieving the Text of a Document by Using the ItemOperations Command

The following example demonstrates a client request to retrieve the data for a document by using the ItemOperations command ([MS-ASCMD] section 2.2.1.10), and the server response. In the XML response below, the value of the itemoperations:Data element ([MS-ASCMD] section 2.2.3.39.2) has been truncated for the sake of brevity.

Request:

 <?xml version="1.0" encoding="utf-8"?>
 <ItemOperations xmlns:documentlibrary="DocumentLibrary:" xmlns="ItemOperations:">
   <Fetch>
       <Store>DocumentLibrary</Store>
       <documentlibrary:LinkId>\\EXCH-D-810\DocumentShare\Word Document.docx</documentlibrary:LinkId>
   </Fetch>
 </ItemOperations>

Response:

 <?xml version="1.0" encoding="utf-8"?>
 <ItemOperations 
 xmlns:documentlibrary="DocumentLibrary:"
 > 
   <Status>1</Status>
   <Response>
     <Fetch>
       <Status>1</Status>
       <documentlibrary:LinkId>\\EXCH-D-810\DocumentShare\Word Document.docx</documentlibrary:LinkId>
       <Properties>
        <Data>UEsDBBQABgAIAAAAIQDd/+ImYzsKNchci+VLqQHEkJU4+RzBv1jKu6vsf0VwOamabaWQ1pZ+9AtcdYNl/WDl03Gn4KZu/Yy4kVyAdhb9kuYipsSc
 ZyjWop9SwabDDPJZ2RYqwKNuBpotX1RP9fi46FLAmhCYnP83x1nANaXg902aJ5x687HyFZLBZ9e/tDg7MvaD4BAAD//wMAUEsDBBQABgAIAAAAIQDWZLNR
 +gAAADEDAAAcAAgBd29yZC9fcmVscy9kb2N1bWVudC54bWwucmVscyCiBAEooAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...</Data>
         <Version>2009-11-11T19:15:45.177Z</Version>
       </Properties>
     </Fetch>
   </Response>
 </ItemOperations>
Show: