Log In

Since the MEMdoc web service consists of two separate web services, the user has to log in twice:

  1. Call server.getServerSessionId. This operation creates a session on the server and returns a server Session Id
  2. Create a SHA-256 hash of the password. Make sure you use UTF-8 character encoding
  3. Call module.loginToModule with the parameters serverSessionId, user name the hashed password
  4. This will return the user id, a module session id and a signature
  5. Now you have to log into the server. Call server.logIntoServer with the parameters server session id, signature, user id  and the server address
  6. If everything was succesful you're session on the server is set active and you are logged in both servers.