Guest User

Untitled

a guest
Nov 8th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://192.168.10.144/magento22ce/soap/default?wsdl&services=integrationAdminTokenServiceV1'
  2.  
  3. <?php
  4. require('zendframework/zend-server/src/Client.php');
  5. require('zendframework/zend-soap/src/Client.php');
  6. require('zendframework/zend-soap/src/Client/Common.php');
  7.  
  8. // basic information needed for requests
  9. $soapTokenUri = 'http://192.168.10.144/magento22ce/soap/default?wsdl&services=integrationAdminTokenServiceV1';
  10.  
  11. $username = 'integration';
  12. $password = 'pass@word5';
  13.  
  14. $options = [
  15. 'soap_version' => SOAP_1_2,
  16. 'trace' => 1,
  17. 'connection_timeout' => 120,
  18. ];
  19. // create client and get token response using username and password
  20. $cli = new SoapClient($soapTokenUri, $options);
  21. $response = $cli->integrationAdminTokenServiceV1CreateAdminAccessToken([
  22. 'username' => $username,
  23. 'password' => $password
  24. ]);
  25. $token = $response->result;
  26.  
  27. echo $token;
Add Comment
Please, Sign In to add comment