#include <SoapSlave.h>
Public Methods | |
void | process_request () |
bool | parseHeader (char *header, BinaryAction *binaction) |
void | soapError (string message) |
void | soapCoreError (CoreError err) |
void | createSession () |
void | useSession (const char *cookie_ptr) |
bool | login (string response) |
void | logout () |
string | annotate (string username) |
string | getDocumentInfo (long docid) |
string | queryUpdates (long first, long maxlen) |
void | deleteRevision (long docid, long revid) |
void | deleteDocument (long docid) |
void | changeDocInfo (long docid, string metadata) |
long | changeDocument (long docid, long fileid, string mimetype) |
void | addRendition (long docid, long revid, long fileid, string mimetype) |
long | createDocument (string metadata) |
|
addRendition note that the document was already stored in dime_write_open. All parameters are from struct BinaryAction |
|
We got a username from the client. Now we present him/her with a challenge. We store a local copy for when the users asks us to log him/her in. |
|
change doc info, accepts an XML string |
|
change document Note that all these parameters come from the binaction struct and dime_write_open |
|
create a document, return its number |
|
create a new usersession |
|
delete a document |
|
delete a revision |
|
return the document info in xml format |
|
challenge was previously fetched by the client. A local copy of this challenge was saved in the users session information. Now we combine these in an login attempt |
|
delete the usersession related to our secret |
|
since DIME headers are broken across different SOAP libraries we cant use them to transport details about the datastream. Fortunately soapheaders are available by the time attachments are processed. In these headers we store the relevant info on the binary data. This method parses the header and stores the information in the binacion struct |
|
This method is the start of SOAP Processing in soap_serve we dispatch controll to one of the namespaced methods in SoapServer, this then returns controll to an instance of slave. When we are done, we clean up after ourselves and free our slot. |
|
return a string with a list of updated files |
|
sets a message according to CoreError |
|
sets a soap error message |
|
get current session or new if none exits |