Subversion Repositories XServices

Rev

Rev 92 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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