daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest Mar 14th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Wed Mar 14 10:41:39.684427 2018] [:error] [pid 1366] [client ::1:43724] PHP Catchable fatal error:  Object of class stdClass could not be converted to string in /var/www/html/test/index.php on line 44
  2.    
  3. try {
  4.  
  5.     $proxy = new SoapClient('http://toso.mitocondria.cl/index.php/api/v2_soap/?wsdl');
  6.  
  7.     $sessionId = $proxy->login((object)array('username' => 'user', 'apiKey' => 'password'));
  8.  
  9.     $result = $proxy->catalogCategoryTree((object)array('sessionId' => $sessionId->result, 'parentId' => '2'));
  10.     var_dump($result->result);
  11.  
  12. } catch (Exception $ex) {
  13.     echo 'Error: '.$ex->getMessage();
  14. }
  15.    
  16. $sessionId = $proxy->login((object)array('username' => 'user', 'apiKey' => 'password'));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top