I was posting to the wrong url. It should have been xlDocs/user/login.

For the reference of others: this is a Drupal web service to which I am connecting. Still the same error, though.