I am new to Magento API. I am developing Android application using SOAP v2 API. I am able to get login successfully and get session id. By using this session id I am able to get the list of products which are in my Magento web.
Now my problem is, I am getting approximately 850 products, so web service is getting little more time to response. I want to set limit in the request so that I gets only 20 records in each request. I have used filters but I don't think it will help me to solve my problem.
Best Answer
Unfortunately it isn't possible out of the box. You are right, filters are only used to filter attributes and there is no "limit" parameter
Source: http://www.magentocommerce.com/api/soap/catalog/catalogProduct/catalog_product.list.html
Looking at the source code of
Mage_Catalog_Model_Product_Api
confirms it:The collection gets filtered by store and by attributes and that's it. No way to further manipulate it. What you'd need to do is write an own API model that extends this class and adds its own method
itemsWithLimit()
with an additional parameter.Update by request
if using the REST API with OAuth is an option, you actually can provide a limit:
Source: http://www.magentocommerce.com/api/rest/introduction.html#RESTAPIIntroduction-Products