/xservices/branches/xservices-jre7/doc/FileServices/downloadFile.xml |
---|
0,0 → 1,39 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>downloadFile</title> |
<para>Downloads a file as base64 encoded. |
Sample request: |
<programlisting language="xml"><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<!-- downloads a file from the XServices server as base64 encoded --> |
<ws:downloadFile> |
<file> |
<type>FILE</type> |
<uri>c:\temp\test.docx</uri> |
</file> |
</ws:downloadFile> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:downloadFileResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return> |
<content>ADQBNA[... snipp ...]wAApzcAAAAA</content> |
<filename>test.docx</filename> |
</return> |
</ns2:downloadFileResponse> |
</soap:Body> |
</soap:Envelope>]]></programlisting> |
</para> |
<para>Encoding files as base64 is very memory consuming!</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/branches/xservices-jre7/doc/FileServices/FileServices.xml |
---|
0,0 → 1,10 |
<?xml version="1.0" encoding="utf-8"?> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude" |
id="fileservices"> |
<title>FileServices</title> |
<para>The FileServces bundles various file operations. Its WSDL is located at |
http://server:port/XServices/FileService?wsdl</para> |
<xi:include href="./downloadFile.xml" /> |
<xi:include href="./encodeFile.xml" /> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/branches/xservices-jre7/doc/FileServices/encodeFile.xml |
---|
0,0 → 1,38 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>encodeFile</title> |
<para>Encodes a file as base64. |
Sample request: |
<screen><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:encodeFile> |
<file> |
<type>FILE</type> |
<uri>c:\temp\test.docx</uri> |
</file> |
</ws:encodeFile> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></screen> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:encodeFileResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return> |
<content>ADQBNA[... snipp ...]wAApzcAAAAA</content> |
<filename>test.docx</filename> |
</return> |
</ns2:encodeFileResponse> |
</soap:Body> |
</soap:Envelope>]]></programlisting> |
</para> |
<para>DEPRECATED: Encoding files as base64 is very memory consuming!</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |