public function GetCredit() { $client = new SoapClient($this->wsdl_link); if ($client->Authentication($this->username, $this->password) == '1') { return $client->GetCredit(); } else { return false; } }