Subversion Repositories XServices

Rev

Rev 92 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
92 brianR 1
<?xml version='1.0' encoding='utf-8'?>
2
<!DOCTYPE section [
3
<!ENTITY % myent SYSTEM "../entities.ent">
4
%myent;
5
]>
6
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
7
	xmlns:xi="http://www.w3.org/2001/XInclude">
8
	<title>downloadFile</title>
9
	<para>Downloads a file as base64 encoded.
10
	Sample request:
165 brianR 11
<programlisting language="xml"><![CDATA[
92 brianR 12
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
13
   <soapenv:Header/>
14
   <soapenv:Body>
15
<!-- downloads a file from the XServices server as base64 encoded -->
16
      <ws:downloadFile>
17
         <file>
18
            <type>FILE</type>
19
            <uri>c:\temp\test.docx</uri>
20
         </file>
21
      </ws:downloadFile>
22
   </soapenv:Body>
23
</soapenv:Envelope>
165 brianR 24
]]></programlisting>
92 brianR 25
	Sample response:
26
	<programlisting language="xml"><![CDATA[
27
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
28
   <soap:Body>
29
      <ns2:downloadFileResponse xmlns:ns2="http://ws.xservices.brutex.net">
30
         <return>
31
            <content>ADQBNA[... snipp ...]wAApzcAAAAA</content>
32
            <filename>test.docx</filename>
33
         </return>
34
      </ns2:downloadFileResponse>
35
   </soap:Body>
36
</soap:Envelope>]]></programlisting>
37
</para>
38
<para>Encoding files as base64 is very memory consuming!</para>
39
</section>