Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://192.168.10.144/magento22ce/soap/default?wsdl&services=integrationAdminTokenServiceV1'
- <?php
- require('zendframework/zend-server/src/Client.php');
- require('zendframework/zend-soap/src/Client.php');
- require('zendframework/zend-soap/src/Client/Common.php');
- // basic information needed for requests
- $soapTokenUri = 'http://192.168.10.144/magento22ce/soap/default?wsdl&services=integrationAdminTokenServiceV1';
- $username = 'integration';
- $password = 'pass@word5';
- $options = [
- 'soap_version' => SOAP_1_2,
- 'trace' => 1,
- 'connection_timeout' => 120,
- ];
- // create client and get token response using username and password
- $cli = new SoapClient($soapTokenUri, $options);
- $response = $cli->integrationAdminTokenServiceV1CreateAdminAccessToken([
- 'username' => $username,
- 'password' => $password
- ]);
- $token = $response->result;
- echo $token;
Add Comment
Please, Sign In to add comment