0

i am not able to list stores using soap method 'store.list'. i am using magento 1.5. Any help would be highly appreciated.

Below is my code to retrieve list of stores.

Thanks.

$client = new SoapClient('localhost/api/soap/?wsdl');
$session = $client->login('user', 'password');
$result = $client->call($session, 'store.list');
print_r ($result);

ERROR -

Fatal error: Uncaught SoapFault exception: [3] Invalid api path.
Stack trace:
#0 /var/www/magento15/storeapi.php(11): SoapClient->__call('call', Array)
#1 /var/www/magento15/storeapi.php(11): SoapClient->call('a62836877247bba...', 'store.list')
#2 {main}
  thrown in test.php on line 11

1 Answer 1

1

There was not API available for the store in 1.5.
As you can see here there is no api.xml file in that version.
Also see here that there is no Api.php class for the Store.

They were added in the 1.6 version. See this and this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.