Handled the authentication procedure and sending responses for XmlOverTcpClient.