Magento API blog Version 7 comments

Magento API blog Version


If you are using WAMP following errors can come

Warning: SoapClient::SoapClient( [function.SoapClient-SoapClient]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden ( The ISA Server denied the specified Uniform Resource Locator (URL). ) in C:\wamp\www\SOAP_CALL.php on line 2

Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O warning : failed to load external entity "" in C:\wamp\www\SOAP_CALL.php on line 2

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '' in C:\wamp\www\SOAP_CALL.php:2 Stack trace: #0 C:\wamp\www\SOAP_CALL.php(2): SoapClient->SoapClient('http://magento....') #1 {main} thrown in C:\wamp\www\SOAP_CALL.php on line 2

to solve this you need to remove php_soap.dll comment from php.ini and restart wamp


After installation v and after setting System –> web service– > user role
and user
Fatal error: Call to undefined method Mage_Adminhtml_Block_Widget::getrowurl()
in C:\wamp\www\shopannet\app\code\core\Mage\Adminhtml\Block\Widget\Grid.php on line 1622
Used link 4 to solve this

Magento api useful links


[3]. very usefull

to over come admin error faced to create api user


PHP FILE TO GET API from magento in array

echo "Calling Magento sales_order.list
$proxy = new SoapClient('');
$sessionId = $proxy->login('pk_sales', 'pksales1234567');

echo "session id : ".$sessionId;
$orders = $proxy->call($sessionId, 'sales_order.list', 1);
echo '
echo '</pre>

foreach ($orders as $order) {
var_dump($proxy->call($sessionId, '', $order[increment_id]));

echo "Calling Magento customer.list
$proxy = new SoapClient('');
$sessionId = $proxy->login('pk_customer', 'pk1234567');

echo "session id : ".$sessionId;

//if customer email eqal =
/*$customers = $proxy->call($sessionId, 'customer.list', array(array('email'=>array('eq'=>''))));

//all customers
$customers = $proxy->call($sessionId, 'customer.list',1);

echo '
echo '</pre>

foreach ($customers as $customer) {
var_dump($proxy->call($sessionId, '', $customer[customer_id]));


Share on Facebook

About Pragnesh Karia

Pragnesh Karia, Open Source Enthusiast, Software Professional, Software Developer, Technical Lead ,Magento, Joomla ,Joomla LMS , Moodel LMS ,PHP ,Mysql, Ajax, Javascript, Jquery, Linux, Fan of Open Sources , Annet Technologies , SEO Analyst , Mootools

7 thoughts on “Magento API blog Version