2010-08-18 64 views
1

我的目标是使用SOAP API调用获取Catalog - > Attributes - > Manage Attributes Admin Panel部分中列出的所有属性。Magento catalogCategoryAttributeList SOAP API调用不会返回所有属性

当我打电话

stub.catalogCategoryAttributeList(sessionId) 

注:Java中,Apache Axis的用来拨打这个电话。在php中它与此调用相关 - http://www.magentocommerce.com/wiki/doc/webservices-api/api/catalog_category_attribute#catalog_category_attribute.list

由于某些原因,我得到了一组有限的属性。这里是:

increment_id 
parent_id 
updated_at 
created_at 
name 
description 
image 
meta_title 
meta_keywords 
meta_description 
is_active 
all_children 
path_in_store 
children 
url_key 
url_path 
path 
position 
level 
display_mode 
landing_page 
is_anchor 
available_sort_by 
default_sort_by 
custom_design 
custom_design_apply 
custom_design_from 
custom_design_to 
page_layout 
custom_layout_update 

我在这里例如缺少一些重要属性,这里是一些相关的T恤性质:

color 
gender 
size 
+0

您使用v1或v2的哪个版本的api? – Kapil 2011-03-05 07:07:28

回答

1

我知道这个问题已经很老了,但还是尝试后一个尽可能多的已知答案,使SO更有知识。

因为SOAP API“catalogCategoryAttributeList”只会输出类别属性而不是产品属性,所以您得到的是完全可以的。

要获得所有目录产品属性,您需要拨打“catalogProductAttributeList”SOAP API,提及here

希望它有帮助。