public function GetCredit() { $options = array('login' => $this->username, 'password' => $this->password); $client = new SoapClient($this->wsdl_link, $options); try { $credit = $client->accountInfo(); return $credit->remaining; } catch (SoapFault $sf) { return $sf->faultcode . "\n"; return $sf->faultstring . "\n"; } }
public function GetCredit() { $client = new SoapClient($this->wsdl_link); $result = $client->accountInfo($this->username, $this->password); return $result['balance']; }