Guest User

Untitled

a guest
Mar 14th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  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'));
Add Comment
Please, Sign In to add comment