cancel
Showing results for 
Search instead for 
Did you mean: 

Magento SOAP api

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

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.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer