i use function "catalog.list" magento api (link: http://www.magentocommerce.com/api/soap/catalog/catalogproduct/catalog_product.list.html )
my calling parameter looks this:
product.list("mydomain.com/api/xmlrpc", "3345dd3eedc3deadbeef", new object[] { xmlfilter },storeviewidasstring);
when using function parameter "storeviewidasstring" response with:
623 : calling parameters not match signature
my proxy looks this:
public static product[] list(string apiurl, string sessionid, object[] args, string store_view) { iproduct prox = (iproduct)xmlrpcproxygen.create(typeof(iproduct)); prox.url = apiurl; return prox.list(sessionid, _catalog_product_list, args,store_view); } [xmlrpcmethod("call")] product[] list(string sessionid, string method, object[] args,string store_view);
i'm using ez.llc's magento api wrapper.
i ran when building custom nodejs api xmlrpc wrapper magento. catalog_category.assignedproducts resource.
the docs http://devdocs.magento.com/guides/m1x/api/soap/catalog/catalogcategory/catalog_category.assignedproducts.html ask integer value category id, likes array of integer value category id.
i turned this:
... apiclient.methodcall('call', [sessionid, 'catalog_category.assignedproducts', 8] ...
into this:
... apiclient.methodcall('call', [sessionid, 'catalog_category.assignedproducts', [8] ] ...
and eliminated error.
Comments
Post a Comment