9 votes

Get Custom attribute in API

If you're using the SOAP Api try this: Create a basic custom module and ensure that has <Mage_Catalog/> as dependency Then add an api config file for overwrite the "category" complex types ...
user avatar
  • 2,995
8 votes

how to get all images of a particular product

Use the following code to avail all the images of a particular product. $product = Mage::getModel('catalog/product')->load(2); $base = $product->getImage(); $thumb = $product->getThumbnail();...
user avatar
6 votes
Accepted

SOAP error: Parsing WSDL: Couldn't load from "" failed to load external entity

SOAP server needs to be initialized with WSDL to understand how to process incoming requests (it basically loads WSDL from the specified URL in case of Magento). This happens in \...
user avatar
6 votes

Soap API - How to get request by Limit 10 based on pagination?

Unfortunately as far as I know you can't simply pass a limit to the SOAP API. One approach which would work if you don't need to filter the list by any attributes, want to get all attributes and ...
user avatar
  • 4,443
5 votes
Accepted

SoapSerializationEnvelope error in android app code

I got the answer by replacing this http://127.0.0.1/index.php/api/v2_soap/"; by http://machines Ip address/index.php/api/v2_soap/"; and I started to use V2 soap api. Its working fine.
user avatar
4 votes

Magento API adding a custom attribute to the sales_order.list output

In your config.xml: <adminhtml> <events> <sales_order_collection_load_after> <observers> <mycompany_mymodule> ...
user avatar
4 votes
Accepted

Why Magento salesOrderInvoiceList is accepting store_id as a Complex filter?

Formally, you can pass to complex filter any field from sales/order_invoice model and this field will take part in the filtering. Magento passes your complex filter to \...
user avatar
4 votes
Accepted

Speeding up the Magento REST/SOAP API

It is pity, but there is no drop-in solution to make Magento SOAP API faster. API is slow not only on Magento side but also on the client side, as WSDL size is incredibly huge for loading into memory ...
user avatar
4 votes

how to get all images of a particular product

Below Variable returns you array of all media images with respect to that product id. $images = Mage::getModel('catalog/product')->load($item->product_id)->getMediaGalleryImages();
user avatar
4 votes

how to get all images of a particular product

You can get products all images by following script including images that are excluded: $product->getMediaGalleryImages('images') $product should be an instance of Mage_Catalog_Model_Product
user avatar
  • 3,582
4 votes
Accepted

Uncaught SoapFault exception: [SOAP-ENV:Client] Error cannot find parameter

Problem is when you pass session to get customer list $result = $cli->customerCustomerList($session_id); Now change to following code: <?php $api_url_v2 = "https://ninobambino.in/index.php/api/...
user avatar
  • 34.4k
3 votes

SOAP v2 api "The operation has timed out"

you can try the following: Session SQL: INSERT INTO core_config_data(path, value) VALUES ('web/cookie/cookie_lifetime', 86400) ON DUPLICATE KEY UPDATE value = 86400; or manual: System -> ...
user avatar
3 votes
Accepted

how to save API xml request and response files

All the SOAP cals go through the method Mage_Api_Model_Server_Adapter_Soap::run there is an if-else statement in there. The if branch generates the WSDL, you don't need to log that. On the else ...
user avatar
  • 196k
3 votes
Accepted

Error using Soap Client in Magento

As mentioned in the comments above: The right URL to use with SOAPv2 API is: http://localhost/magento/index.php/api/v2_soap?wsdl=1 (with or without index.php) Further information on the SOAP API ...
user avatar
  • 17.2k
3 votes
Accepted

Blank Filters Using PHP SoapClient to Make Calls into WSI-Compliant API

Thanks to the help of SoapUI, I found the following request format would work using PHP SoapClient: $request = [ 'sessionId' => $session, 'filters' => [ 'filter' ...
user avatar
3 votes
Accepted

Shipping charges are not saving in Database if we added Product to cart through Android App

First,You need to check available shipping methods for current cart/Quote using Soap api function shoppingCartShippingList().See at link .If you have multiple store view/stores /websites then you ...
user avatar
  • 75.9k
3 votes

SOAP connection couldn't load

It seems your URL is wrong. It should be https://www.ourshop.com/shop/index.php/api/v2_soap/?wsdl=1 instead of https://www.ourshop.com/shop/index.php/api/v2_soap/index/
user avatar
  • 17.2k
3 votes

SOAP url wont load xml

The Magento 1 soap server attempts to address itself by domain name. If you look in the apache access logs you should be seeing errors when attempting to test the soap connection like this. This can ...
user avatar
  • 4,412
3 votes
Accepted

Search Criteria not working with Soap API

You have to write the SOAP API, like below. <?php require('vendor/zendframework/zend-server/src/Client.php'); require('vendor/zendframework/zend-soap/src/Client.php'); require('vendor/...
user avatar
  • 1,479
3 votes
Accepted

Magento 1.9 API v2 Payment Additional Information

Posting the answer here in case someone else bumps in to the same issue. Magento order object already returns the additional_information as an array, so we just needed to add a typens <element ...
user avatar
  • 2,084
2 votes

Invalid webservice adapter specified REST API

This errors comes from here: \Mage_Api_Model_Server::initialize You are using the rest adapter, which is defined in app/code/core/Mage/Api/etc/api.xml <adapters> <soap> ...
user avatar
2 votes
Accepted

Error with SOAP API when using a different domain for admin access

The problem in the end was how we had setup the admin domain. We had configured it through ngnix to use the 'admin' store code. Fix was to change the ngnix configuration so if a request to the api ...
user avatar
  • 984
2 votes

Magento SOAP API Add to cart, how to add a grouped product?

Having looked at it in some depth, I think this is simply not implemented in the Magento code and therefore the API would have to be extended for grouped products to work properly Because I have ...
user avatar
  • 1,559
2 votes
Accepted

catalogProductList - adding 'nin' filters

API V2 queries use a "complex filter" for advanced queries. Their syntax is a bit different. Here's a complex filter query for your sample: $filter = array( array( 'complex_filter' => ...
user avatar
  • 2,047
2 votes

SOAP error: Parsing WSDL: Couldn't load from "" failed to load external entity

I was experiencing the same issue. I did install the orocrm bridge which needs to access the soap api, followed the given steps to configure a soap role and a user and then I tried to connect: 💥 ...
user avatar
2 votes

Add new element to the api method catalogProductCreate

If your element is a product attribute, Magento is ready to handle with the Soap API. The catalogProductCreate method has additional_attributes parameter. You can use it to set one or more values to ...
user avatar
2 votes
Accepted

Wrong SOAP Exception Code in API V2 Response

$this->_fault() throws a Mage_Api_Exception exception. Because this is within your try..catch block, you catch this Mage_Api_Exception with catch (Exception $ex) where you throw a different ...
user avatar
2 votes

How do I retrieve a product using either the REST or SOAP APIs?

None of Magento APIs provide access to "full" product. Using REST API would be easier so go for it if it does not matter. Your application needs to authenticate as an admin user (not customer), see ...
user avatar
2 votes
Accepted

Is there an API available to download a digital product?

No, This type of soap api is not available in default magento. if you require, then create a custom API. Please follow the step given in below link. http://www.magentocommerce.com/api/soap/...
user avatar
  • 9,552
2 votes
Accepted

How to upload a file attachment to custom product attribute using Magento SOAP

In your case you need to implement custom SOAP API endpoint. Luckily you may heavily reuse Downloadable Product API implementation. If you create all files listed below, you will have new SOAP V2 API ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible