tags:

views:

2662

answers:

5

I’m calling the Magento (1.3.1.1) API http://MAGENTO/api/v2_soap?wsdl . And I’m getting Access Denied Soap exceptions when I call the Login method.

I have created a webservice user called Admin and assigned them to a role that has access to ‘ALL’.

I have another instance of Magento hosted on the same server and it works fine, and I have asked a colleague to give it a try, setting up their own user and calling the webservice and they experience the same problem.

EDIT:I tried starting from scratch again, reapplying my changes and testing at each stage. Iv managed to pin it down to something in the database as the error occurs again when I re-import the database. So I know its nothing to do with any code or template changes I have made. Still lost though!

A: 

I have exact the same problem, tried everything. The WSDL file is read nicely by the SoapClient object but the method login does also give me an access denied.

// Connect. $client = new SoapClient("http://localhost/niels/magento/api/?wsdl");

// Goes ok... $client->login('apitest', 'secretpass');

// Results in a fatal error... Fatal error: Uncaught SoapFault exception: [2] Access denied.

I narrowed it down to something in the database if that helps. Some configuration setting must have an impact. Let me know if you crack this.
Dan
A: 

Same problem here. If you find a solution please post it here. I am sure that this worked in a version before 1.3.1 as I have tested it and found it great. But now when I need it it stops just with this error even if I use xmlrpc as protocol. Don't know why.

jensL
you should have mad this a comment. Your 'answer' is not an answer.
Dan
A: 

Its still not working.. exact error as mentioned above.. role and user setup should be fine... no clue why its still not working :(

this should be a comment and not an answer
marcgg
A: 

Same problem here. If you find a solution please post it here.

this should be a comment and not an answer
marcgg
A: 

If your using the latest version of Magento 1.3 and still have issues, check out the fix here: http://www.everythingilike.com/magento-api-bug-fixes

Alberto Salce