DeRPC

Mark Baker distobj@acm.org
Tue, 10 Jul 2001 15:33:54 -0400


Aargh, what a bad time for my DSL connection to go down.

Jim Whitehead asked me to convert XFS (http://www.xmethods.net/xfs/), so
here it is;

==snip==

XMethods defines XFS a file-system like mechanism over SOAP for
manipulating user's files.

The "listFiles" method returns an XML document (of an apparently
proprietary schema) that provides the list of files currently
available.  The semantics of "listFiles" appears to be expressable with
HTTP GET, so instead of a "listFiles" method over HTTP POST, I would
define a relative URL, "/files" that, when GET is executed upon it, will
return the same XML format.

"readFile" retrieves the content of the named file (as named in the XML
document returned from "listFiles".  I would define this as a sub-URL of
/files.  So if the file were named "testfile", I would retrieve it with
an HTTP GET on /files/testfile.

"writeFile" appears to overwrite the specified file.  This is what HTTP
PUT does.  So if I wanted to overwrite the file named "File", I would do
an HTTP PUT to /files/File, with the body of the PUT being the file
contents that will be replacing the existing contents.

"removeFile" deletes the file.  HTTP has the DELETE method for this
purpose.  To delete a file named "testfile", I would replace this method
with an HTTP DELETE to the /files/testfile URL.