def connect(self):
if self.session and self.session.is_expired:<EOL><INDENT>self.disconnect(abandon_session=True)<EOL><DEDENT>if not self.session:<EOL><INDENT>try:<EOL><INDENT>login_result = self.login(self.username, self.password)<EOL><DEDENT>except AccountFault:<EOL><INDENT>log.error('<STR_LIT>')<EOL>raise<EOL><DEDENT>else:<EOL><INDENT>self.session = login_result.session_id<EOL><DEDENT><DEDENT>self.connected = time()<EOL>return self.connected<EOL>
Connects to the Responsys soap service

        Uses the credentials passed to the client init to login and setup the session id returned.
        Returns True on successful connection, otherwise False.