Subversion Repositories XServices

Rev

Details | 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>encodeFile</title>
9
	<para>Encodes a file as base64.
10
	Sample request:
11
<screen><![CDATA[
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
      <ws:encodeFile>
16
         <file>
17
            <type>FILE</type>
18
            <uri>c:\temp\test.docx</uri>
19
         </file>
20
      </ws:encodeFile>
21
   </soapenv:Body>
22
</soapenv:Envelope>
23
]]></screen>
24
	Sample response:
25
	<programlisting language="xml"><![CDATA[
26
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
27
   <soap:Body>
28
      <ns2:encodeFileResponse xmlns:ns2="http://ws.xservices.brutex.net">
29
         <return>
30
            <content>ADQBNA[... snipp ...]wAApzcAAAAA</content>
31
            <filename>test.docx</filename>
32
         </return>
33
      </ns2:encodeFileResponse>
34
   </soap:Body>
35
</soap:Envelope>]]></programlisting>
36
</para>
37
<para>DEPRECATED: Encoding files as base64 is very memory consuming!</para>
38
</section>