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

API - How do I get started? 
 
itzik
Member
 
Total Posts:  36
Joined:  2008-07-21
 

I’m a little unsure of how to get started with API....could someone please advise? I created a PHP file and put in this code:

<?

  $proxy 
= new SoapClient('http://mydomain.com/api/?wsdl');
  
$sessionId $proxy->login('apiUser''apiKey');
  
  
var_dump($proxy->call($sessionId'product.info''InvOf_78'));

?>

but then I got this error:

Fatal errorUncaught SoapFault exception[WSDL] SOAP-ERRORParsing WSDLCouldn't load from 'http://mydomain.com/api/soap/?wsdl' in /home/liquncom/public_html/custom/soap.php:3 Stack trace: #0 /home/liquncom/public_html/custom/soap.php(3): SoapClient->SoapClient('http://liquidat...') #1 {main} thrown in /home/liquncom/public_html/custom/soap.php on line 3
 
Magento Community Magento Community
Magento Community
Magento Community
 
clorne
Sr. Member
 
Total Posts:  236
Joined:  2008-01-10
London
 

To begin with you should be using Magento 1.1.1

1.  Make sure that extension=php_soap.dll is enabled in php.ini
2. You may have to include index.php in your url “ http://mydomain.com/index.php/api/?wsdl’
3. Create BOTH a role and user in your admin System/Web Services

Good luck

 
Magento Community Magento Community
Magento Community
Magento Community
 
itzik
Member
 
Total Posts:  36
Joined:  2008-07-21
 

Does that mean API does not work in Magento ver. 1.0.19870 ?

and if so, is there any way to update the API functionality without updating the entire script?

 
Magento Community Magento Community
Magento Community
Magento Community
 
adultcart
Jr. Member
 
Total Posts:  7
Joined:  2009-02-01
 

I still can’t get it to work :(

Can anyone help?

http://mariasfantasy.com/SCRIPT/magento.api.php

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