public function GetCredit() { $client = new SoapClient('http://www.novinpayamak.com/services/CISGate/wsdl', array('encoding' => 'UTF-8')); $result = $client->CheckRealCredit(array('Auth' => array('email' => $this->username, 'password' => $this->password))); if ($result->Status != 1000) { return false; } return $result->Credit; }