Read User File

Description

Read all of the data in a user file and return it as a block of text. Optionally can access an entry within a zip file. Only suitable for reading text files.

The service runs without authority; if a user knows the storage key they are presumed to have authority to read the file.

Input

<ReadUserFile>
<storageKey/> <entry/> </ReadUserFile>

If entry is passed, the file is presumed to be a zip file, and text from the named entry is returned.

Output

<ReadUserFile>
<errorNumber>0</errorNumber> <data/>
</ReadUserFile>

Errors

102 - Not found, which includes storage key not found, file missing for storage key, entry not found, and reading a normal file as a zip file.

103 - Parameter error

Class

com.metrici.xerula.ReadUserFileService