Magento Certified Developer GuideCategory: 11. APIWhat are the syntactical differences between API versions
Manish Prakash Staff asked 2 years ago

V1 Soap API

$client = new SoapClient('http://127.0.0.1:81/magento/api/soap/?wsdl=1');
$session = $client->login('test_123', [email protected]');
$result = $client->call($session, 'test_product.list', array(array()));
$client->endSession($session);

V2 SOAP API

$client = new SoapClient('http://127.0.0.1:81/magento/api/v2_soap/?wsdl=1');
$session = $client->login('test_123', [email protected]');
$result = $client->excellenceTestList($session);