Hi Bo,
This does occur if you don't send the user name & password in the HTTP POST body. The user name and password need to be specified for both getServerDefinition and login services.
You did not detail the Post body here, so I can't tell exactly what was wrong.
Anyway, please refer to the documentation for more information.
Hope this helps,
Ophir