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.

1 REPLY 1

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

 

 

Was my answer helpful? You can accept it as a solution.
150+ professional extensions for M1 & M2 with free lifetime updates!