cancel
Showing results for 
Search instead for 
Did you mean: 

Magento SOAP api

Magento SOAP api

Hi,

I'm trying the following code to access product list 

 

$client = new SoapClient('http://magentohost/api/soap/?wsdl');

$session = $client->login('apiUser','apiKey');

$result = $client->call($session, 'product.list');

 $client->endSession($session);

 

But this is returning the following error - 

Fatal error: Uncaught SoapFault exception: [2] Access denied.

 

Can anyone help me to resolve this error.

Thanks 

Radhika.

Tags (1)
1 REPLY

Re: Magento SOAP api

Hello

 

If you are working on localhost, then you will need to start service from wamp server. php->php-extension -> php_soap .You need to tick mark it

 

 

Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions : https://magecomp.com/free-magento-extensions.html