Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to use Web Services / API? I have some issues. 
 
Michael Laursen
Member
 
Total Posts:  39
Joined:  2009-08-30
 

Hi there

I’m still on rookie level when it comes to Magento. That didn’t prevent my from trying to integrate Axapta with Magento.

But I’m stock with the web services, witch I can’t find any solution for. I have read many threads in this forum the last couple of hours, but nothing got me going.

I what to start simple, so could anyone please tell me, how I can get any information out of Magento?

I tried this:
$proxy = new SoapClient(’http://website/shop/index.php/api/soap/index/wsdl/1’);
$sessionId = $proxy->login(’apiUser’, ‘apiKey’);
$allCategories = $proxy->call($sessionId, ‘category.tree’); // Get all categories.

But got the well known XML error in line 1.

I placed the api2.xml file in website/shop/etc

Then I read, that I needed to install php soap.
Through my Joomla, I get this information:

Soap Client enabled
Soap Server enabled

Directive Local Value Master Value
soap.wsdl_cache 1 1
soap.wsdl_cache_dir /tmp /tmp
soap.wsdl_cache_enabled 1 1
soap.wsdl_cache_limit 5 5
soap.wsdl_cache_ttl 86400 86400

I hope someone will help me with this, then I will be able to continue my crazy quest integrating Axapta with Magento.

Info:
Im running:
Magento 1.3.2.4
PHP: 5.2.6-1+lenny3 on Apache

Thanks

-Michael

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top