MailToTheFuture via SOAP 1.1Posted by Dave Winer, 3/31/01 at 9:16:04 PM.
Background 
In 1998 we launched a Web app called MailToTheFuture.
It's a simple way to send mail to yourself or others, in the future..
Today I got a SOAP interface tested and working.
You can write scripts that run against this server, theoretically, using SOAP 1.1.
Please help us test this.
SOAP Interface 
First, create an account on MailToTheFuture. Make note of your username and password. All the verbs take these as parameters. You can't script MTTF without an account.
Here's a screen shot of a Frontier script that calls all six routines, to give you ideas on how you may want to test.
Server: www.mailtothefuture.com, port: 80, SOAPAction: /mailToTheFuture.
Each of the following sections documents one of the entry points.
mailToTheFuture.addMessage (username, password, msgstruct) 
Adds a message to username's queue. username must be the email address of a registered user. password must be that user's password.
msgstruct is a struct containing the following elements: dateTime, messageBody, receiverMailAddress, subject.
A new message is created in the user's queue. It returns the size of the user's queue.
mailToTheFuture.deleteMessage (username, password, msgnum) 
Deletes the indicated message in the user's queue. Returns the empty string. If the user's queue doesn't have an nth element, it faults. msgnum is 1-based.
mailToTheFuture.getAllMessages (username, password) 
Returns the entire queue for the user in a single struct.
mailToTheFuture.getMessage (username, password, msgnum) 
Returns a single message as a struct.
mailToTheFuture.setMessage (username, password, msgnum, msgstruct) 
Takes a struct and assigns it to the indicated message. This call allows a remote script to edit a MTTF message.
mailToTheFuture.getMessageCount (username, password) 
Returns the number of messages in the user's queue.
History 
For a historic perspective see this article on the Frontier website.
|