The Login function passes username and password for authentication.
In this Login XML, you can specify an alias username that the session will assign as the user when creating a new communication.
<?xml version="1.0" encoding="utf-16"?>
<mws>
<loginparams>
<loginparam name=""alias"">USERNAME</loginparam>
</loginparams>
</mws>