Log In
Since the MEMdoc web service consists of two separate web services, the user has to log in twice:
- Call server.getServerSessionId. This operation creates a session on the server and returns a server Session Id
- Create a SHA-256 hash of the password. Make sure you use UTF-8 character encoding
- Call module.loginToModule with the parameters serverSessionId, user name the hashed password
- This will return the user id, a module session id and a signature
- Now you have to log into the server. Call server.logIntoServer with the parameters server session id, signature, user id and the server address
- If everything was succesful you're session on the server is set active and you are logged in both servers.