2011.02.24
Magento API blog Version 1.5.0.1
1>
If you are using WAMP following errors can come
Warning: SoapClient::SoapClient(http://shop.annet.com/api/soap/?wsdl) [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 "http://magento.supplementmarket.com/api/soap/?wsdl" in C:\wamp\www\SOAP_CALL.php on line 2
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://magento.supplementmarket.com/api/soap/?wsdl' 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
2>
After installation v 1.5.0.1 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
[1].https://magento4u.wordpress.com/tag/magento-api-key/
[2].http://activecodeline.net/consuming-web-service-via-soap-in-magento
[3].http://www.magentocommerce.com/boards/viewthread/43818/
app.zip very usefull
[4].http://www.magentocommerce.com/boards/%202010-03-04%2011:36:38%20%3C/td%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C/tr%3E%20%20%3Ctr%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ctd%20height=/viewthread/214093/#t286529
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('http://shop.annet.com/index.php/api/soap/?wsdl');
$sessionId = $proxy->login('pk_sales', 'pksales1234567');
echo "session id : ".$sessionId;
$orders = $proxy->call($sessionId, 'sales_order.list', 1);
echo '
<pre>';
print_r($orders);
echo '</pre>
';
foreach ($orders as $order) {
var_dump($proxy->call($sessionId, 'sales_order.info', $order[increment_id]));
}
*/
echo "Calling Magento customer.list
";
$proxy = new SoapClient('http://shop.annet.com/index.php/api/soap/?wsdl');
$sessionId = $proxy->login('pk_customer', 'pk1234567');
echo "session id : ".$sessionId;
//if customer email eqal = pkclient@gmail.com
/*$customers = $proxy->call($sessionId, 'customer.list', array(array('email'=>array('eq'=>'pkclient@gmail.com'))));
*/
//all customers
$customers = $proxy->call($sessionId, 'customer.list',1);
echo '
<pre>';
print_r($customers);
echo '</pre>
';
foreach ($customers as $customer) {
var_dump($proxy->call($sessionId, 'customer.info', $customer[customer_id]));
}
?>
Pingback: Attorney Directory
Pingback: apartments Fenway
Admin – I’ve checked out http://pragneshkaria.com/2011/02/24/magento-api-blog-version-1-5-0-1/ and I really like your writing style like in your post Magento API blog Version 1.5.0.1 – Open Source Rocks. I am looking for blog authors who would like to write articles as either a full time job or part time job (for some extra money). I think your writing style would work very well. You receive pay per article, anywhere from $5 to $50 per article depending on the topic, article length, etc… If interested you can find more information at http://www.OnlineHomeWriter.net. Have a good day – Tina
yes….i would like to do so..
give me the full details..
Afternoon,
I have been pulling my hair out trying to make a custom webservice api for magento 1.5. I beleive all my configurations are correct but when I try to call a my api method, I get an error in the log, because magento is trying to open a my module as Mage/MyMoudule/Model instead of MyCompanyName/MyModule/Model..
Why is magento looking at the service like it is a ‘Mage’ api call?
Do you have a working example I can download an install to magento 1.5?
Please help I am going crazyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy LMAO!
Pingback: mercury head
Pingback: http://aeonswtorguide.org